mirror of
https://github.com/php/php-src.git
synced 2026-04-29 11:13:36 +02:00
6497c6c455
Fixes GH-18373 Closes GH-19537
15 lines
249 B
PHP
15 lines
249 B
PHP
--TEST--
|
|
GH-18373: Don't substitute self/parent with anonymous class
|
|
--FILE--
|
|
<?php
|
|
|
|
$o = new class() {
|
|
public function test(): self {}
|
|
};
|
|
|
|
echo (new ReflectionClass($o))->getMethod('test')->getReturnType()->getName(), "\n";
|
|
|
|
?>
|
|
--EXPECT--
|
|
self
|