mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
* Zend/*: fix a bunch of typos * Zend/tests/try/try_catch_finally_005.phpt: update string length
20 lines
379 B
PHP
20 lines
379 B
PHP
--TEST--
|
|
Bug #60153 (Interface method prototypes not enforced when implemented via traits.)
|
|
--FILE--
|
|
<?php
|
|
|
|
interface IFoo {
|
|
public function oneArgument($a);
|
|
}
|
|
|
|
trait TFoo {
|
|
public function oneArgument() {}
|
|
}
|
|
|
|
class C implements IFoo {
|
|
use TFoo;
|
|
}
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Declaration of C::oneArgument() must be compatible with IFoo::oneArgument($a) in %s on line %d
|