1
0
mirror of https://github.com/php/php-src.git synced 2026-04-27 18:23:26 +02:00
Files
archived-php-src/Zend/tests/magic_methods_020.phpt
T
Nikita Popov 5d4659c25c Enforce __set_state() parameter type
This fixes one of the issues reported in bug #79925. The parameter
type check for this particular method was missed.
2020-08-03 10:23:06 +02:00

13 lines
269 B
PHP

--TEST--
__set_state first parameter must be an array
--FILE--
<?php
class Foo {
public static function __set_state(int $properties) {}
}
?>
--EXPECTF--
Fatal error: Foo::__set_state(): Parameter #1 ($properties) must be of type array when declared in %s on line %d