🔧
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user