[php-src] Issue #9288: ReflectionMethod::isBuiltin() returns false for "static"

From: Date: Tue, 09 Aug 2022 14:40:11 +0000
Subject: [php-src] Issue #9288: ReflectionMethod::isBuiltin() returns false for "static"
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-242168@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/9288 Author: nicolas-grekas ### Description The following code (see https://3v4l.org/9pBvi): ```php class A { public function f(): static { } } var_dump((new ReflectionMethod('A', 'f'))->getReturnType()->isBuiltin()); ``` Resulted in this output: ``` bool(false) ``` But I expected this output instead: ``` bool(true) ``` ### PHP Version >= 8.0 ### Operating System _No response_

« previous php.bugs (#242168) next »