Skip to content

Commit

Permalink
[Core] Fix ConfigurableCallValuesCollectingPhpFileLoader::import() $s…
Browse files Browse the repository at this point in the history
…ourceResource type (#140)

* [Core] Fix ConfigurableCallValuesCollectingPhpFileLoader::import() $sourceResource type

* phpstan

* fix
  • Loading branch information
samsonasik committed Jun 2, 2021
1 parent 57d45e8 commit 6f7cd6e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
8 changes: 8 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -493,3 +493,11 @@ parameters:

# should be refactored to collector
- '#Cognitive complexity for "Rector\\CodingStyle\\Naming\\NameRenamer\:\:renameNameNode\(\)" is 10, keep it under 9#'

-
message: '#Removing parent param type is forbidden#'
path: src/DependencyInjection/Loader/ConfigurableCallValuesCollectingPhpFileLoader.php #39

-
message: '#Method parameters must be compatible with its parent#'
path: src/DependencyInjection/Loader/ConfigurableCallValuesCollectingPhpFileLoader.php #39
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,10 @@ public function import(
$resource,
string $type = null,
$ignoreErrors = false,
string $sourceResource = null,
$sourceResource = null,
$exclude = null
) {
)
{
// this call collects root values
$this->collectConfigureCallsFromJustImportedConfigurableRectorDefinitions();

Expand Down

0 comments on commit 6f7cd6e

Please sign in to comment.