diff options
Diffstat (limited to 'Zend/tests/magic_methods_011.phpt')
-rw-r--r-- | Zend/tests/magic_methods_011.phpt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Zend/tests/magic_methods_011.phpt b/Zend/tests/magic_methods_011.phpt new file mode 100644 index 0000000000..5ce536ae40 --- /dev/null +++ b/Zend/tests/magic_methods_011.phpt @@ -0,0 +1,10 @@ +--TEST-- +__set first parameter should be a string when typed +--FILE-- +<?php +class Foo { + function __set(\Countable $name, $value) {} +} +?> +--EXPECTF-- +Fatal error: Foo::__set(): Parameter #1 ($name) must be of type string when declared in %s on line %d |