blob: 0579973fbc969c57818ca0573d2bdc3aed0201f5 (
plain)
1
2
3
4
5
6
7
8
9
10
|
--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
|