mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
10 lines
202 B
PHP
10 lines
202 B
PHP
--TEST--
|
|
__sleep cannot take arguments
|
|
--FILE--
|
|
<?php
|
|
class Foo {
|
|
public function __sleep(string $name) {}
|
|
}
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Method Foo::__sleep() cannot take arguments in %s on line %d
|