summaryrefslogtreecommitdiff
path: root/Zend/tests/return_types/024.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/return_types/024.phpt')
-rw-r--r--Zend/tests/return_types/024.phpt2
1 files changed, 0 insertions, 2 deletions
diff --git a/Zend/tests/return_types/024.phpt b/Zend/tests/return_types/024.phpt
index 0579973fbc..45c8162335 100644
--- a/Zend/tests/return_types/024.phpt
+++ b/Zend/tests/return_types/024.phpt
@@ -1,10 +1,8 @@
--TEST--
Return type of self is not allowed in function
-
--FILE--
<?php
function test(): self {}
-
--EXPECTF--
Fatal error: Cannot use "self" when no class scope is active in %s on line 3