[PHP-DEV] One more Liskov Subs. and parameter checking notice

2011-12-06 Thread jpauli
Greetings PHP Intern@ls :) There is a PHP behavior I disagree with regarding OO model. It's been here for a long time (5.0 ??, at least 5.2, 5.3 and 5.4) , here it is : ?php interface Iface1 { } interface Iface2 extends Iface1 { } class Foo { public function bar(Iface1 $arg) { } } class

Re: [PHP-DEV] One more Liskov Subs. and parameter checking notice

2011-12-06 Thread Etienne Kneuss
Hi, On Tue, Dec 6, 2011 at 14:54, jpauli jpa...@php.net wrote: Greetings PHP Intern@ls :) There is a PHP behavior I disagree with regarding OO model. It's been here for a long time (5.0 ??, at least 5.2, 5.3 and 5.4) , here it is : ?php interface Iface1 { } interface Iface2 extends