From 5a62e34c8ccd83d0b79e30c054f56d4c095016a6 Mon Sep 17 00:00:00 2001 From: Nuno Maduro Date: Mon, 30 Dec 2024 10:30:02 +0000 Subject: [PATCH] Removes warning --- .github/workflows/tests.yml | 5 ----- app/Commands/DefaultCommand.php | 8 -------- 2 files changed, 13 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f54c6910..e8b2f8d6 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -50,11 +50,6 @@ jobs: composer install - name: Execute lint tests with Laravel preset - if: matrix.php == '8.4' - run: PINT_IGNORE_ENV=1 ./pint --test - - - name: Execute lint tests with Laravel preset - if: matrix.php != '8.4' run: ./pint --test - name: Execute static analysis diff --git a/app/Commands/DefaultCommand.php b/app/Commands/DefaultCommand.php index e1813617..4d487f12 100644 --- a/app/Commands/DefaultCommand.php +++ b/app/Commands/DefaultCommand.php @@ -57,14 +57,6 @@ protected function configure() */ public function handle($fixCode, $elaborateSummary) { - if (! ($_ENV['PINT_IGNORE_ENV'] ?? false) && version_compare(PHP_VERSION, '8.4.0', '>=')) { - $this->warn('PHP 8.4 is not currently supported by PHP CS Fixer and you may encounter unexpected behavior.'); - $this->warn('You can still force Pint to run by setting the environment variable:'); - $this->warn('PINT_IGNORE_ENV=1 vendor/bin/pint'); - - return 1; - } - [$totalFiles, $changes] = $fixCode->execute(); return $elaborateSummary->execute($totalFiles, $changes);