/home/techb158/ileadtechnology.com/SSM/vendor/psy/psysh/src/CodeCleaner
NameSizeModeActions
AbstractClassPass.php22000644editdlrm
AssignThisVariablePass.php10340644editdlrm
CalledClassPass.php23860644editdlrm
CallTimePassByReferencePass.php13910644editdlrm
CodeCleanerPass.php4150644editdlrm
EmptyArrayDimFetchPass.php12830644editdlrm
ExitPass.php7730644editdlrm
FinalClassPass.php16660644editdlrm
FunctionContextPass.php13390644editdlrm
FunctionReturnInWriteContextPass.php24980644editdlrm
ImplicitReturnPass.php42400644editdlrm
InstanceOfPass.php16040644editdlrm
LabelContextPass.php23560644editdlrm
LeavePsyshAlonePass.php9130644editdlrm
ListPass.php32820644editdlrm
LoopContextPass.php34760644editdlrm
MagicConstantsPass.php10680644editdlrm
NamespaceAwarePass.php18560644editdlrm
NamespacePass.php24160644editdlrm
NoReturnValue.php8700644editdlrm
PassableByReferencePass.php40240644editdlrm
RequirePass.php30350644editdlrm
StrictTypesPass.php27040644editdlrm
UseStatementPass.php43560644editdlrm
ValidClassNamePass.php121760644editdlrm
ValidConstantPass.php32020644editdlrm
ValidConstructorPass.php38840644editdlrm
ValidFunctionNamePass.php32390644editdlrm
Edit: /home/techb158/ileadtechnology.com/SSM/vendor/psy/psysh/src/CodeCleaner/ValidConstantPass.php (3202B)
name->parts) > 1) { $name = $this->getFullyQualifiedName($node->name); if (!\defined($name)) { $msg = \sprintf('Undefined constant %s', $name); throw new FatalErrorException($msg, 0, E_ERROR, null, $node->getLine()); } } elseif ($node instanceof ClassConstFetch) { $this->validateClassConstFetchExpression($node); } } /** * Validate a class constant fetch expression. * * @throws FatalErrorException if a class constant is not defined * * @param ClassConstFetch $stmt */ protected function validateClassConstFetchExpression(ClassConstFetch $stmt) { // For PHP Parser 4.x $constName = $stmt->name instanceof Identifier ? $stmt->name->toString() : $stmt->name; // give the `class` pseudo-constant a pass if ($constName === 'class') { return; } // if class name is an expression, give it a pass for now if (!$stmt->class instanceof Expr) { $className = $this->getFullyQualifiedName($stmt->class); // if the class doesn't exist, don't throw an exception… it might be // defined in the same line it's used or something stupid like that. if (\class_exists($className) || \interface_exists($className)) { $refl = new \ReflectionClass($className); if (!$refl->hasConstant($constName)) { $constType = \class_exists($className) ? 'Class' : 'Interface'; $msg = \sprintf('%s constant \'%s::%s\' not found', $constType, $className, $constName); throw new FatalErrorException($msg, 0, E_ERROR, null, $stmt->getLine()); } } } } }