REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 805 B
Close
/opt/cpanel/ea-wappspector/vendor/rector/rector/rules/Php80/NodeResolver/ArgumentSorter.php
Text
Base64
<?php declare (strict_types=1); namespace Rector\Php80\NodeResolver; use PhpParser\Node\Arg; use PhpParser\Node\Param; final class ArgumentSorter { /** * @template T as Arg|Param * @param array<int, int> $oldToNewPositions * @param T[] $argOrParams * @return T[] */ public function sortArgsByExpectedParamOrder(array $argOrParams, array $oldToNewPositions) : array { $newArgsOrParams = []; foreach (\array_keys($argOrParams) as $position) { \assert(\is_int($position)); $newPosition = $oldToNewPositions[$position] ?? null; if ($newPosition === null) { continue; } $newArgsOrParams[$position] = $argOrParams[$newPosition]; } return $newArgsOrParams; } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 3
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
ArgumentSorter.php
805 B
lrw-r--r--
2024-11-08 13:59:10
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
RequireOptionalParamResolver.php
884 B
lrw-r--r--
2024-11-08 13:59:10
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
SwitchExprsResolver.php
4.48 KB
lrw-r--r--
2024-11-08 13:59:10
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).