Skip to content

Commit

Permalink
PHP stan bump
Browse files Browse the repository at this point in the history
  • Loading branch information
Spamercz committed Apr 4, 2024
1 parent 57400d8 commit 903d269
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 36 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@
},
"require-dev": {
"slevomat/coding-standard": "^8.0",
"spameri/dependency-mocker": "^1.3",
"spameri/dependency-mocker": "^1.3",
"nette/tester": "^2.4",
"phpstan/phpstan": "0.12.84",
"phpstan/phpstan": "^1.10.66",
"php-coveralls/php-coveralls": "^2.1",
"nette/bootstrap": "^3.0",
"nette/http": "^3.0.7",
Expand Down
9 changes: 3 additions & 6 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,10 @@ phpstan-lowest:
vendor/bin/phpstan analyse -l 6 -c phpstan-low.neon src tests

cs:
vendor/bin/phpcs --standard=ruleset.xml --cache=.phpcs-cache src tests/SpameriTests
vendor/bin/phpcs --standard=ruleset.xml --cache=.phpcs-cache src tests

cs-local:
vendor/bin/phpcs --standard=ruleset.xml src tests/SpameriTests

cbf:
vendor/bin/phpcbf --standard=ruleset.xml src tests/SpameriTests
csf:
vendor/bin/phpcbf --standard=ruleset.xml src tests

coverage:
vendor/bin/tester $COVERAGE -s -c ./tests/php.ini-unix ./tests
2 changes: 1 addition & 1 deletion phpstan-low.neon
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
parameters:
excludes_analyse:
excludePaths:
- %rootDir%/../../../tests/tmp/*

checkGenericClassInNonGenericObjectType: false
Expand Down
28 changes: 1 addition & 27 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,39 +1,13 @@
parameters:
excludes_analyse:
excludePaths:
- %rootDir%/../../../tests/tmp/*

ignoreErrors:
-
message: "#^PHPDoc tag @throws with type Elasticsearch\\\\Common\\\\Exceptions\\\\ElasticsearchException is not subtype of Throwable$#"
count: 1
path: src/ClientProvider.php

-
message: "#^PHPDoc tag @throws with type Elasticsearch\\\\Common\\\\Exceptions\\\\ElasticsearchException is not subtype of Throwable$#"
count: 1
path: src/Commands/TypeToNewIndex.php

-
message: "#^Call to function array_key_exists\\(\\) with string and array\\<int, mixed\\> will always evaluate to false\\.$#"
count: 1
path: src/Entity/Collection/AbstractElasticEntityCollection.php

-
message: "#^Call to function array_key_exists\\(\\) with string and array\\<int, mixed\\> will always evaluate to false\\.$#"
count: 1
path: src/Entity/Collection/AbstractEntityCollection.php

-
message: "#^PHPDoc tag @throws with type Elasticsearch\\\\Common\\\\Exceptions\\\\ElasticsearchException is not subtype of Throwable$#"
count: 2
path: src/Model/TypeToNewIndex/Migrate.php

-
message: "#^Unable to resolve the template type T in call to method Nette\\\\DI\\\\Container\\:\\:getByType\\(\\)$#"
count: 2
path: src/Model/ServiceLocator.php


checkGenericClassInNonGenericObjectType: false
checkMissingIterableValueType: false

Expand Down

0 comments on commit 903d269

Please sign in to comment.