comparison vendor/psy/psysh/src/Psy/Reflection/ReflectionConstant.php @ 12:7a779792577d

Update Drupal core to v8.4.5 (via Composer)
author Chris Cannam
date Fri, 23 Feb 2018 15:52:07 +0000
parents 4c8ae668cc8c
children
comparison
equal deleted inserted replaced
11:bfffd8d7479a 12:7a779792577d
58 // it's actually defined. Let's check for a constant that is also 58 // it's actually defined. Let's check for a constant that is also
59 // available on the parent class which has exactly the same value. 59 // available on the parent class which has exactly the same value.
60 // 60 //
61 // While this isn't _technically_ correct, it's prolly close enough. 61 // While this isn't _technically_ correct, it's prolly close enough.
62 do { 62 do {
63 $class = $parent; 63 $class = $parent;
64 $parent = $class->getParentClass(); 64 $parent = $class->getParentClass();
65 } while ($parent && $parent->hasConstant($this->name) && $parent->getConstant($this->name) === $this->value); 65 } while ($parent && $parent->hasConstant($this->name) && $parent->getConstant($this->name) === $this->value);
66 66
67 return $class; 67 return $class;
68 } 68 }