golden hour
/opt/cpanel/ea-wappspector/vendor/nikic/php-parser/lib/PhpParser/Node/Expr
⬆️ Go Up
Upload
File/Folder
Size
Actions
ArrayDimFetch.php
822 B
Del
OK
ArrayItem.php
305 B
Del
OK
Array_.php
831 B
Del
OK
ArrowFunction.php
2.49 KB
Del
OK
Assign.php
774 B
Del
OK
AssignOp
-
Del
OK
AssignOp.php
726 B
Del
OK
AssignRef.php
823 B
Del
OK
BinaryOp
-
Del
OK
BinaryOp.php
1.07 KB
Del
OK
BitwiseNot.php
652 B
Del
OK
BooleanNot.php
652 B
Del
OK
CallLike.php
1.76 KB
Del
OK
Cast
-
Del
OK
Cast.php
567 B
Del
OK
ClassConstFetch.php
986 B
Del
OK
Clone_.php
637 B
Del
OK
Closure.php
2.77 KB
Del
OK
ClosureUse.php
309 B
Del
OK
ConstFetch.php
683 B
Del
OK
Empty_.php
640 B
Del
OK
Error.php
757 B
Del
OK
ErrorSuppress.php
662 B
Del
OK
Eval_.php
637 B
Del
OK
Exit_.php
758 B
Del
OK
FuncCall.php
994 B
Del
OK
Include_.php
951 B
Del
OK
Instanceof_.php
860 B
Del
OK
Isset_.php
642 B
Del
OK
List_.php
879 B
Del
OK
Match_.php
782 B
Del
OK
MethodCall.php
1.25 KB
Del
OK
New_.php
1.08 KB
Del
OK
NullsafeMethodCall.php
1.27 KB
Del
OK
NullsafePropertyFetch.php
971 B
Del
OK
PostDec.php
639 B
Del
OK
PostInc.php
639 B
Del
OK
PreDec.php
636 B
Del
OK
PreInc.php
636 B
Del
OK
Print_.php
640 B
Del
OK
PropertyFetch.php
945 B
Del
OK
ShellExec.php
795 B
Del
OK
StaticCall.php
1.26 KB
Del
OK
StaticPropertyFetch.php
1014 B
Del
OK
Ternary.php
967 B
Del
OK
Throw_.php
668 B
Del
OK
UnaryMinus.php
652 B
Del
OK
UnaryPlus.php
649 B
Del
OK
Variable.php
637 B
Del
OK
YieldFrom.php
666 B
Del
OK
Yield_.php
846 B
Del
OK
Edit: CallLike.php
<?php declare(strict_types=1); namespace PhpParser\Node\Expr; use PhpParser\Node\Arg; use PhpParser\Node\Expr; use PhpParser\Node\VariadicPlaceholder; abstract class CallLike extends Expr { /** * Return raw arguments, which may be actual Args, or VariadicPlaceholders for first-class * callables. * * @return array<Arg|VariadicPlaceholder> */ abstract public function getRawArgs(): array; /** * Returns whether this call expression is actually a first class callable. */ public function isFirstClassCallable(): bool { $rawArgs = $this->getRawArgs(); return count($rawArgs) === 1 && current($rawArgs) instanceof VariadicPlaceholder; } /** * Assert that this is not a first-class callable and return only ordinary Args. * * @return Arg[] */ public function getArgs(): array { assert(!$this->isFirstClassCallable()); return $this->getRawArgs(); } /** * Retrieves a specific argument from the raw arguments. * * Returns the named argument that matches the given `$name`, or the * positional (unnamed) argument that exists at the given `$position`, * otherwise, returns `null` for first-class callables or if no match is found. */ public function getArg(string $name, int $position): ?Arg { if ($this->isFirstClassCallable()) { return null; } foreach ($this->getRawArgs() as $i => $arg) { if ($arg->unpack) { continue; } if ( ($arg->name !== null && $arg->name->toString() === $name) || ($arg->name === null && $i === $position) ) { return $arg; } } return null; } }
Save