Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Maintenance: phpstan, codesniffer, makefile
- Loading branch information
Showing
6 changed files
with
39 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
# Not archived | ||
.docs export-ignore | ||
tests export-ignore | ||
.github export-ignore | ||
.editorconfig export-ignore | ||
.gitattributes export-ignore | ||
.gitignore export-ignore | ||
.travis.yml export-ignore | ||
Makefile export-ignore | ||
phpstan.neon export-ignore | ||
README.md export-ignore | ||
phpstan.neon export-ignore | ||
ruleset.xml export-ignore | ||
tests export-ignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,18 @@ | ||
includes: | ||
- vendor/phpstan/phpstan-deprecation-rules/rules.neon | ||
- vendor/phpstan/phpstan-nette/extension.neon | ||
- vendor/phpstan/phpstan-nette/rules.neon | ||
- vendor/phpstan/phpstan-strict-rules/rules.neon | ||
- vendor/contributte/phpstan/phpstan.neon | ||
|
||
parameters: | ||
level: 9 | ||
phpVersion: 70200 | ||
phpVersion: 80100 | ||
|
||
paths: | ||
scanDirectories: | ||
- src | ||
|
||
ignoreErrors: | ||
# phpstan don't like array callbacks | ||
- '#^Parameter \#1 \$function of function call_user_func expects callable\(\)\: mixed, array\{.+\} given\.$#' | ||
|
||
- | ||
message: "#^Method Contributte\\\\EventDispatcher\\\\LazyEventDispatcher\\:\\:getListeners\\(\\) should return array\\<Symfony\\\\Component\\\\EventDispatcher\\\\EventSubscriberInterface\\> but returns array\\<array\\<callable\\>\\|\\(callable\\)\\>\\.$#" | ||
count: 1 | ||
path: src/LazyEventDispatcher.php | ||
fileExtensions: | ||
- php | ||
|
||
- | ||
message: "#^Return type \\(array\\<Symfony\\\\Component\\\\EventDispatcher\\\\EventSubscriberInterface\\>\\) of method Contributte\\\\EventDispatcher\\\\LazyEventDispatcher\\:\\:getListeners\\(\\) should be covariant with return type \\(array\\<array\\<callable\\(\\)\\: mixed\\>\\|\\(callable\\(\\)\\: mixed\\)\\>\\) of method Symfony\\\\Component\\\\EventDispatcher\\\\EventDispatcher\\:\\:getListeners\\(\\)$#" | ||
count: 1 | ||
path: src/LazyEventDispatcher.php | ||
paths: | ||
- src | ||
- .docs | ||
|
||
- | ||
message: "#^Return type \\(array\\<Symfony\\\\Component\\\\EventDispatcher\\\\EventSubscriberInterface\\>\\) of method Contributte\\\\EventDispatcher\\\\LazyEventDispatcher\\:\\:getListeners\\(\\) should be covariant with return type \\(array\\<array\\<callable\\(\\)\\: mixed\\>\\|\\(callable\\(\\)\\: mixed\\)\\>\\) of method Symfony\\\\Component\\\\EventDispatcher\\\\EventDispatcherInterface\\:\\:getListeners\\(\\)$#" | ||
count: 1 | ||
path: src/LazyEventDispatcher.php | ||
ignoreErrors: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,22 @@ | ||
<?xml version="1.0"?> | ||
<ruleset> | ||
<!-- Contributte Coding Standard --> | ||
<rule ref="./vendor/ninjify/coding-standard/contributte.xml"/> | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ruleset name="Contributte" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd"> | ||
<!-- Rulesets --> | ||
<rule ref="./vendor/contributte/qa/ruleset-8.0.xml"/> | ||
|
||
<!-- Specific rules --> | ||
<!-- Rules --> | ||
<rule ref="SlevomatCodingStandard.Files.TypeNameMatchesFileName"> | ||
<properties> | ||
<property name="rootNamespaces" type="array"> | ||
<element key="src" value="Contributte\EventDispatcher"/> | ||
<element key="tests" value="Tests"/> | ||
</property> | ||
<property name="extensions" type="array"> | ||
<element key="php" value="php"/> | ||
<element key="phpt" value="phpt"/> | ||
</property> | ||
</properties> | ||
</rule> | ||
|
||
<!-- Exclude folders --> | ||
<!-- Excludes --> | ||
<exclude-pattern>/tests/tmp</exclude-pattern> | ||
</ruleset> |