mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-15 01:20:59 +00:00
Remove unused RuntimeException import from RoboFile (#18548)
Fixes ECS error: ``` ERROR: The use statement with non-compound name 'RuntimeException' has no effect in /home/runner/work/Sylius/Sylius/RoboFile.php:18 Error: Process completed with exit code 123. ``` Changes: - Removed unused `use RuntimeException;` import - Used fully qualified `\RuntimeException` where needed - Used `\PHP_EOL` instead of `PHP_EOL` for consistency
This commit is contained in:
commit
8aed2ae1f7
1 changed files with 3 additions and 4 deletions
|
|
@ -15,7 +15,6 @@ use Robo\Exception\TaskException;
|
|||
use Robo\Result;
|
||||
use Robo\Symfony\ConsoleIO;
|
||||
use Robo\Tasks;
|
||||
use RuntimeException;
|
||||
|
||||
class RoboFile extends Tasks
|
||||
{
|
||||
|
|
@ -47,7 +46,7 @@ class RoboFile extends Tasks
|
|||
}
|
||||
|
||||
foreach ($result as $packageName => $value) {
|
||||
printf('%s %s%s', $value === self::SUCCESS ? '✅' : '❌', $packageName, PHP_EOL);
|
||||
printf('%s %s%s', $value === self::SUCCESS ? '✅' : '❌', $packageName, \PHP_EOL);
|
||||
$failed = $failed || $value === self::FAILED;
|
||||
}
|
||||
|
||||
|
|
@ -65,11 +64,11 @@ class RoboFile extends Tasks
|
|||
$composerJsonPath = sprintf('%s/composer.json', $packagePath);
|
||||
|
||||
if (false === $symfonyVersion) {
|
||||
throw new RuntimeException('SYMFONY_VERSION environment variable is not set.');
|
||||
throw new \RuntimeException('SYMFONY_VERSION environment variable is not set.');
|
||||
}
|
||||
|
||||
if (!file_exists($composerJsonPath)) {
|
||||
throw new RuntimeException('composer.json file does not exist.');
|
||||
throw new \RuntimeException('composer.json file does not exist.');
|
||||
}
|
||||
|
||||
$task = $this->taskExecStack()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue