On 28 May 2017 at 18:06, Aidan Woods <aidantwo...@gmail.com> wrote: > So, if I understand everything here correctly > ... > will be equivalent in 7.2? :( >
Not equivalent. Adding the Boo param type to an implementation, when it is only a comment in the parent gives an error. interface Foo { /* * @param $Boo, pretty please accept type Boo here */ public function bar( $Boo); } class Zot implements Foo { public function bar(Boo $Boo) {} } Fatal error: Declaration of Zot::bar(Boo $Boo) must be compatible with Foo::bar($Boo) in %s on line %d cheers Dan -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php