Remove PHP CS Fixer workaround (#963)

* Remove PHP CS Fixer workaround

* Clean up
This commit is contained in:
Zach Borboa
2025-07-07 01:49:43 -04:00
committed by GitHub
parent b25cc0df91
commit a95eef5fa3
+6 -15
View File
@@ -118,21 +118,12 @@ if [[ "${?}" -ne 0 ]]; then
errors+=("found PHP_CodeSniffer coding standard violation(s)")
fi
# TODO: Remove this workaround that only runs php-cs-fixer on PHP < 8.4 when
# php-cs-fixer supports PHP 8.4.
# https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/8300
if [[ $(echo "${CI_PHP_VERSION} < 8.4" | bc -l) -eq 1 ]]; then
# Run PHP-CS-Fixer.
vendor/bin/php-cs-fixer --version
vendor/bin/php-cs-fixer fix --ansi --config="tests/.php-cs-fixer.php" --diff --dry-run
if [[ "${?}" -ne 0 ]]; then
echo "❌ Error: found PHP-CS-Fixer coding standard violation(s)"
errors+=("found PHP-CS-Fixer coding standard violation(s)")
fi
else
echo "⚠️ Skipped running PHP-CS-Fixer coding standards check"
warnings+=("Skipped running PHP-CS-Fixer coding standards check")
# Run PHP-CS-Fixer.
vendor/bin/php-cs-fixer --version
vendor/bin/php-cs-fixer fix --ansi --config="tests/.php-cs-fixer.php" --diff --dry-run
if [[ "${?}" -ne 0 ]]; then
echo "❌ Error: found PHP-CS-Fixer coding standard violation(s)"
errors+=("found PHP-CS-Fixer coding standard violation(s)")
fi
popd