Test for #60174 (Notice when array in method prototype error)

This commit is contained in:
Xinchen Hui 2011-10-31 06:04:43 +00:00
parent 5921e73a37
commit 378ad2f447

View File

@ -0,0 +1,16 @@
--TEST--
Bug #60174 (Notice when array in method prototype error)
--FILE--
<?php
Abstract Class Base {
public function test($foo, $extra = array("test")) {
}
}
class Sub extends Base {
public function test($foo, $extra) {
}
}
?>
--EXPECTF--
Strict Standards: Declaration of Sub::test() should be compatible with Base::test($foo, $extra = Array) in %sargument_restriction_006.php on line %d