Bug #70839 [Opn->Asn]: Convertion optional argument to variadic forbidden by LSP checks
Edit report at https://bugs.php.net/bug.php?id=70839&edit=1
ID: 70839
Updated by: nikic@php.net
Reported by: nikic@php.net
Summary: Convertion optional argument to variadic forbidden
by LSP checks
-Status: Open
+Status: Assigned
Type: Bug
Package: Scripting Engine problem
PHP Version: 7.0.0RC6
-Assigned To:
+Assigned To: nikic
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[2015-11-02 16:48:45] nikic@php.net
Description:
------------
Should be allowed and was allowed in 5.6. Off by one error caused by the variadic parameter no
longer counting as an argument.
Test script:
---------------
class Foo {
public function test($bar = null) {}
}
class Baz extends Foo {
public function test(...$args) {}
}
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=70839&edit=1
Thread (4 messages)