Skip to content

Commit

Permalink
Fix type error in PublicPropertyCollector (#94)
Browse files Browse the repository at this point in the history
* Fix type error in PublicPropertyCollector

* re-add phpdoc param to make PHPStorm happy
  • Loading branch information
staabm committed Dec 13, 2023
1 parent 81fc2de commit a9cc112
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,4 @@ parameters:

ignoreErrors:
# collectors generics
- '#Parameter (.*?) of method (.*?)Collector::processNode\(\) should be compatible with parameter#'
- '#Method (.*?)Collector::processNode\(\) should return#'
2 changes: 1 addition & 1 deletion src/Collectors/PublicPropertyCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
use TomasVotruba\UnusedPublic\Configuration;

/**
* @implements Collector<Class_, array<array{class-string, string, int}>>
* @implements Collector<InClassNode, array<array{class-string, string, int}>>
*/
final class PublicPropertyCollector implements Collector
{
Expand Down

0 comments on commit a9cc112

Please sign in to comment.