Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add code-style script to composer.json #182

Merged

Conversation

Sebbo94BY
Copy link
Collaborator

Since I'm using PHP 8.2 on my local machine, I had to set PHP_CS_FIXER_IGNORE_ENV=1, but it seems to work in general:

$ PHP_CS_FIXER_IGNORE_ENV=1 composer run code-style
> "vendor/bin/php-cs-fixer" fix --config .php-cs-fixer.php --diff
PHP needs to be a minimum version of PHP 7.4.0 and maximum version of PHP 8.1.*.
Current PHP version: 8.2.2.
Ignoring environment requirements because `PHP_CS_FIXER_IGNORE_ENV` is set. Execution may be unstable.
PHP needs to be a minimum version of PHP 7.4.0 and maximum version of PHP 8.1.*.
Current PHP version: 8.2.2.
Ignoring environment requirements because `PHP_CS_FIXER_IGNORE_ENV` is set. Execution may be unstable.

Fixed 0 of 52 files in 0.006 seconds, 14.000 MB memory used
Loaded config default from ".php-cs-fixer.php".
Using cache file "C:\Users\Sebastian\Downloads\ts3phpframework/php-cs-fixer.cache".

@ronindesign
Copy link
Collaborator

Nice, yes, this looks great!

@ronindesign ronindesign merged commit 199ea39 into planetteamspeak:dev Feb 19, 2023
@Sebbo94BY Sebbo94BY deleted the Add-PHP-CS-Fixer-as-composer-script branch February 19, 2023 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants