Skip to content

Commit

Permalink
composer-dependency-analyser: update to 1.5.0 (support functions)
Browse files Browse the repository at this point in the history
  • Loading branch information
janedbal authored and ondrejmirtes committed Apr 11, 2024
1 parent 4a4c739 commit 1453c3f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
3 changes: 1 addition & 2 deletions build/composer-dependency-analyser.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,14 @@
->ignoreErrorsOnPackages(
[
'hoa/regex', // used only via stream wrapper hoa://
'react/async', // function usage (https://github.com/shipmonk-rnd/composer-dependency-analyser/issues/67)
...$pinnedToSupportPhp72, // those are unused, but we need to pin them to support PHP 7.2
...$polyfills, // not detected by composer-dependency-analyser
],
[ErrorType::UNUSED_DEPENDENCY],
)
->ignoreErrorsOnPackage('phpunit/phpunit', [ErrorType::DEV_DEPENDENCY_IN_PROD]) // prepared test tooling
->ignoreErrorsOnPackage('jetbrains/phpstorm-stubs', [ErrorType::PROD_DEPENDENCY_ONLY_IN_DEV]) // there is no direct usage, but we need newer version then required by ondrejmirtes/BetterReflection
->ignoreErrorsOnPath(__DIR__ . '/../tests', [ErrorType::UNKNOWN_CLASS]) // to be able to test invalid symbols
->ignoreErrorsOnPath(__DIR__ . '/../tests', [ErrorType::UNKNOWN_CLASS, ErrorType::UNKNOWN_FUNCTION]) // to be able to test invalid symbols
->ignoreUnknownClasses([
'JetBrains\PhpStorm\Pure', // not present on composer's classmap
'PHPStan\ExtensionInstaller\GeneratedConfig', // generated
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"phpstan/phpstan-phpunit": "^1.0",
"phpstan/phpstan-strict-rules": "^1.5.1",
"phpunit/phpunit": "^9.5.4",
"shipmonk/composer-dependency-analyser": "^1.0",
"shipmonk/composer-dependency-analyser": "^1.5",
"shipmonk/name-collision-detector": "^2.0"
},
"config": {
Expand Down
19 changes: 11 additions & 8 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1453c3f

Please sign in to comment.