This commit is contained in:
2025-05-12 14:25:25 +02:00
parent ab2db755ef
commit 9e378ca2b7
2719 changed files with 46505 additions and 60181 deletions

View File

@@ -19,9 +19,10 @@ namespace Psy\Reflection;
class ReflectionConstant implements \Reflector
{
public $name;
/** @var mixed */
private $value;
private static $magicConstants = [
private const MAGIC_CONSTANTS = [
'__LINE__',
'__FILE__',
'__DIR__',
@@ -75,7 +76,7 @@ class ReflectionConstant implements \Reflector
public static function isMagicConstant($name)
{
return \in_array($name, self::$magicConstants);
return \in_array($name, self::MAGIC_CONSTANTS);
}
/**