blob: 45c8162335ae5b314664f38f654301dceb9b3be7 (
plain)
1
2
3
4
5
6
7
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
|