REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 1.67 KB
Close
//opt/cpanel/ea-wappspector/vendor/rector/rector/src/Reporting/DeprecatedRulesReporter.php
Text
Base64
<?php declare (strict_types=1); namespace Rector\Reporting; use Rector\Configuration\Deprecation\Contract\DeprecatedInterface; use Rector\Configuration\Option; use Rector\Configuration\Parameter\SimpleParameterProvider; use RectorPrefix202411\Symfony\Component\Console\Style\SymfonyStyle; final class DeprecatedRulesReporter { /** * @readonly * @var \Symfony\Component\Console\Style\SymfonyStyle */ private $symfonyStyle; public function __construct(SymfonyStyle $symfonyStyle) { $this->symfonyStyle = $symfonyStyle; } public function reportDeprecatedRules() : void { /** @var string[] $registeredRectorRules */ $registeredRectorRules = SimpleParameterProvider::provideArrayParameter(Option::REGISTERED_RECTOR_RULES); foreach ($registeredRectorRules as $registeredRectorRule) { if (!\is_a($registeredRectorRule, DeprecatedInterface::class, \true)) { continue; } $this->symfonyStyle->warning(\sprintf('Registered rule "%s" is deprecated and will be removed. Upgrade your config to use another rule or remove it', $registeredRectorRule)); } } public function reportDeprecatedSkippedRules() : void { /** @var string[] $skippedRectorRules */ $skippedRectorRules = SimpleParameterProvider::provideArrayParameter(Option::SKIPPED_RECTOR_RULES); foreach ($skippedRectorRules as $skippedRectorRule) { if (!\is_a($skippedRectorRule, DeprecatedInterface::class, \true)) { continue; } $this->symfonyStyle->warning(\sprintf('Skipped rule "%s" is deprecated', $skippedRectorRule)); } } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 2
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
DeprecatedRulesReporter.php
1.67 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
MissConfigurationReporter.php
2.80 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).