Skip to content

make fix-style stopped working #8

@SOHELAHMED7

Description

@SOHELAHMED7

When running on PHP 7.4

$ make fix-style
vendor/bin/indent --tabs composer.json
vendor/bin/indent --spaces .php_cs.dist
vendor/bin/php-cs-fixer fix src/ --diff

Fatal error: Uncaught ErrorException: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.1.0". You are running 7.4.33. in /app/vendor/composer/platform_check.php:24
Stack trace:
#0 [internal function]: {closure}(256, 'Composer detect...', '/app/vendor/com...', 24, Array)
#1 /app/vendor/composer/platform_check.php(24): trigger_error('Composer detect...', 256)
#2 /app/vendor/composer/autoload_real.php(25): require('/app/vendor/com...')
#3 /app/vendor/autoload.php(25): ComposerAutoloaderInit5c37f0b685571bf4ca99e1190308b0e2::getLoader()
#4 /app/vendor/friendsofphp/php-cs-fixer/php-cs-fixer(99): require_once('/app/vendor/aut...')
#5 /app/vendor/bin/php-cs-fixer(115): include('/app/vendor/fri...')
#6 {main}
  thrown in /app/vendor/composer/platform_check.php on line 24
make: *** [Makefile:18: fix-style] Error 255


When running on PHP 8.0

$ make fix-style
vendor/bin/indent --tabs composer.json
vendor/bin/indent --spaces .php_cs.dist
vendor/bin/php-cs-fixer fix src/ --diff

Fatal error: Uncaught ErrorException: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.1.0". You are running 8.0.30. in /app/vendor/composer/platform_check.php:24
Stack trace:
#0 [internal function]: {closure}(256, 'Composer detect...', '/app/vendor/com...', 24)
#1 /app/vendor/composer/platform_check.php(24): trigger_error('Composer detect...', 256)
#2 /app/vendor/composer/autoload_real.php(25): require('/app/vendor/com...')
#3 /app/vendor/autoload.php(25): ComposerAutoloaderInit5c37f0b685571bf4ca99e1190308b0e2::getLoader()
#4 /app/vendor/friendsofphp/php-cs-fixer/php-cs-fixer(100): require_once('/app/vendor/aut...')
#5 /app/vendor/bin/php-cs-fixer(119): include('/app/vendor/fri...')
#6 {main}
  thrown in /app/vendor/composer/platform_check.php on line 24
make: *** [Makefile:18: fix-style] Error 255


When running on PHP 8.1

$ make fix-style
vendor/bin/indent --tabs composer.json
vendor/bin/indent --spaces .php_cs.dist
vendor/bin/php-cs-fixer fix src/ --diff
PHP needs to be a minimum version of PHP 5.6.0 and maximum version of PHP 8.0.*.
Current PHP version: 8.1.29.
To ignore this requirement please set `PHP_CS_FIXER_IGNORE_ENV`.
If you use PHP version higher than supported, you may experience code modified in a wrong way.
Please report such cases at https://github.com/FriendsOfPHP/PHP-CS-Fixer .
make: *** [Makefile:18: fix-style] Error 1

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions