🔐 Sid Gifari File Manager Pro
v8.0.5 | 2026-06-15 07:15:06 | PHP 8.1.34
📂
/ (Root)
/
opt
/
cpanel
/
ea-wappspector
/
vendor
/
rector
/
rector
/
rules
/
Php70
/
NodeAnalyzer
📍 /opt/cpanel/ea-wappspector/vendor/rector/rector/rules/Php70/NodeAnalyzer
🔄 Refresh
✏️
Editing: Php4ConstructorClassMethodAnalyzer.php
Read Only
<?php declare (strict_types=1); namespace Rector\Php70\NodeAnalyzer; use PhpParser\Node\Stmt\ClassMethod; use PHPStan\Analyser\Scope; use PHPStan\Reflection\ClassReflection; final class Php4ConstructorClassMethodAnalyzer { public function detect(ClassMethod $classMethod, Scope $scope) : bool { // catch only classes without namespace if ($scope->getNamespace() !== null) { return \false; } if ($classMethod->isAbstract()) { return \false; } if ($classMethod->isStatic()) { return \false; } $classReflection = $scope->getClassReflection(); if (!$classReflection instanceof ClassReflection) { return \false; } return !$classReflection->isAnonymous(); } }
💾 Save Changes
❌ Cancel