php-src/Zend/tests/magic_methods_011.phpt
Nikita Popov c5401854fc Run tidy
This should fix most of the remaining issues with tabs and spaces
being mixed in tests.
2020-09-18 14:28:32 +02:00

11 lines
255 B
PHP

--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