Stanislav Malyshev wrote: > Hi! > >> http://bugs.php.net/bug.php?id=46984 - E_STRICT > > I think overriding foo($x) with foo($x, $y) - with both parameters > required - leads to calls to foo with one argument be wrong for child - > thus violating LSP and warranting E_STRICT.
I agree. If $y were optional, the LSP is no longer violated, and the E_STRICT disappears, as expected. Opn->Bgs Greg -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php