Skip to content

PHP CS Fixer - #31

Merged
osteel merged 1 commit into
mainfrom
feature/php-cs-fixer
Jun 16, 2023
Merged

osteel merged 1 commit into
mainfrom
feature/php-cs-fixer

Conversation

@osteel

@osteel osteel commented Jun 16, 2023 •

Copy link
Copy Markdown
Owner

Description

This PR replaces PHP_CodeSniffer with PHP CS Fixer.

Motivation and context

I used PHP CS Fixer in another project and took the time to fine-tune it. I've copied the same rules over to here.

How has this been tested?

Existing test suite. Note that by switching to PHP 8, union types are now supported, which I forgot to add in #29. This was done here, which made a type check and corresponding test redundant (UPDATE: reverted in #32).

@osteel
osteel force-pushed the feature/php-cs-fixer branch 2 times, most recently from 81c27b2 to 91be4f1 Compare June 16, 2023 12:12
@osteel
osteel force-pushed the feature/php-cs-fixer branch from 91be4f1 to 26f6d24 Compare June 16, 2023 12:15
@osteel
osteel marked this pull request as ready for review June 16, 2023 12:17
@osteel
osteel merged commit 2fa5049 into main Jun 16, 2023
@osteel
osteel deleted the feature/php-cs-fixer branch June 16, 2023 12:17
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.

1 participant