phpcs.xml
<?xml version="1.0"?>
<ruleset name="PHP_CodeSniffer">
<file>./src</file>
<config name="installed_paths" value="vendor/phpcompatibility/php-compatibility" />
<config name="testVersion" value="8.1-"/>
<arg name="colors" />
<arg name="parallel" value="16" />
<arg value="np"/>
<arg name="extensions" value="php" />
<!-- Don't hide tokenizer exceptions -->
<rule ref="Internal.Tokenizer.Exception">
<type>error</type>
</rule>
<rule ref="PSR1" />
<rule ref="PSR2" />
<rule ref="PHPCompatibility"/>
<rule ref="Generic.Arrays.DisallowLongArraySyntax" />
<rule ref="Generic.Files.LineEndings" />
</ruleset>