Re: [RFC] Syntax for variadic functions
From: Levi Morrison Date: Wed, 28 Aug 2013 23:40:33 +0000 Subject: Re: [RFC] Syntax for variadic functions References: 1 2 3 Groups: php.internals Request: Send a blank email to [email protected] to get a copy of this message
> > functions should be able to ignore some arguments, especially ones that > are optional anyway. This is not the current behavior, so why should we change it? See: 1 <?php 2 3 interface TestInterface { 4 function query($params = null); 5 } 6 7 class TestImplementation implements TestInterface { 8 function query() { 9 10 } 11 } Fatal error: Declaration of TestImplementation::query() must be compatible with that of TestInterface::query() in /Users/levijm/Projects/HighlightPHP/tmp.php on line 7
Thread (24 messages)
« previous | php.internals (#68658) | next » |
---|