Mercurial > hg > isophonics-drupal-site
diff vendor/psy/psysh/src/Reflection/ReflectionClassConstant.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | c2387f117808 |
children |
line wrap: on
line diff
--- a/vendor/psy/psysh/src/Reflection/ReflectionClassConstant.php Tue Jul 10 15:07:59 2018 +0100 +++ b/vendor/psy/psysh/src/Reflection/ReflectionClassConstant.php Thu Feb 28 13:21:36 2019 +0000 @@ -38,7 +38,7 @@ $this->name = $name; $constants = $class->getConstants(); - if (!array_key_exists($name, $constants)) { + if (!\array_key_exists($name, $constants)) { throw new \InvalidArgumentException('Unknown constant: ' . $name); } @@ -59,7 +59,7 @@ $refl = new self($class, $name); $value = $refl->getValue(); - $str = sprintf('Constant [ public %s %s ] { %s }', gettype($value), $refl->getName(), $value); + $str = \sprintf('Constant [ public %s %s ] { %s }', \gettype($value), $refl->getName(), $value); if ($return) { return $str; @@ -219,7 +219,7 @@ */ public static function create($class, $name) { - if (class_exists('\\ReflectionClassConstant')) { + if (\class_exists('\\ReflectionClassConstant')) { return new \ReflectionClassConstant($class, $name); }