summaryrefslogtreecommitdiff
path: root/Zend/tests/return_types/044.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/return_types/044.phpt')
-rw-r--r--Zend/tests/return_types/044.phpt10
1 files changed, 10 insertions, 0 deletions
diff --git a/Zend/tests/return_types/044.phpt b/Zend/tests/return_types/044.phpt
new file mode 100644
index 0000000000..3b708a05a7
--- /dev/null
+++ b/Zend/tests/return_types/044.phpt
@@ -0,0 +1,10 @@
+--TEST--
+__set_state can only declare object as return
+--FILE--
+<?php
+class Foo {
+ public static function __set_state($properties): bool {}
+}
+?>
+--EXPECTF--
+Fatal error: Foo::__set_state(): Return type must be object when declared in %s on line %d