Re: PHP RFC: Deffering functions by arguments (count or/and type)

From: Date: Fri, 22 Nov 2013 12:03:36 +0000
Subject: Re: PHP RFC: Deffering functions by arguments (count or/and type)
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-70281@lists.php.net to get a copy of this message
On Fri, 2013-11-22 at 11:54 +0200, Oleg Poludnenko wrote: > Here there is a code sample: > https://gist.github.com/uaoleg/7596995 That sample fails the Liskov substitution principle. Any instance of figure has to have a calcPerimeter method taking zero arguments else you can't use them interchangeably what the base class should guarantee. http://en.wikipedia.org/wiki/Liskov_substitution_principle johannes

« previous php.internals (#70281) next »