REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 801 B
Close
/opt/cpanel/ea-wappspector/vendor/rector/rector/rules/Php80/NodeAnalyzer/PromotedPropertyResolver.php
Text
Base64
<?php declare (strict_types=1); namespace Rector\Php80\NodeAnalyzer; use PhpParser\Node\Param; use PhpParser\Node\Stmt\Class_; use PhpParser\Node\Stmt\ClassMethod; use Rector\ValueObject\MethodName; final class PromotedPropertyResolver { /** * @return Param[] */ public function resolveFromClass(Class_ $class) : array { $constructClassMethod = $class->getMethod(MethodName::CONSTRUCT); if (!$constructClassMethod instanceof ClassMethod) { return []; } $promotedPropertyParams = []; foreach ($constructClassMethod->getParams() as $param) { if ($param->flags === 0) { continue; } $promotedPropertyParams[] = $param; } return $promotedPropertyParams; } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 5
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
MatchSwitchAnalyzer.php
5.64 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
PhpAttributeAnalyzer.php
3.99 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
PromotedPropertyCandidateResolver.php
5.95 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
PromotedPropertyResolver.php
801 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
SwitchAnalyzer.php
3.73 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).