mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-08-17 16:51:35 +00:00
3eedf9e2f0
Change "mixed" declarations to more accurate types in test members; in particular, change those that would be flagged if we were to run Phpstan at level 9 (we currently run level 8). I may or may not follow up with source code (over 700 level-9 problems remain for src), but, as with strict typing, there is no reason to avoid the effort for test members. It was necessary to update some doc blocks in src to accommodate this change. However, no executable code is touched.
27 lines
892 B
XML
27 lines
892 B
XML
<?xml version="1.0"?>
|
|
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="PHP_CodeSniffer"
|
|
xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd">
|
|
|
|
<file>samples</file>
|
|
<file>src</file>
|
|
<file>tests</file>
|
|
<file>infra</file>
|
|
<file>bin/generate-document</file>
|
|
<file>bin/generate-locales</file>
|
|
<file>bin/check-phpdoc-types</file>
|
|
|
|
<exclude-pattern>samples/Header.php</exclude-pattern>
|
|
<exclude-pattern>*/tests/Core/*/*Test\.(inc|css|js)$</exclude-pattern>
|
|
|
|
<arg name="report-width" value="200"/>
|
|
<arg name="parallel" value="80"/>
|
|
<arg name="cache" value="/tmp/.phpspreadsheet.phpcs-cache"/>
|
|
<arg name="colors"/>
|
|
<arg value="np"/>
|
|
|
|
<!-- Include the whole PSR12 standard -->
|
|
<rule ref="PSR12">
|
|
<exclude name="PSR2.Methods.MethodDeclaration.Underscore"/>
|
|
</rule>
|
|
</ruleset>
|