Skip to content

Commit 493b3c9

Browse files
Merge branch '9.2'
2 parents 85099fe + 0e2b405 commit 493b3c9

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

ChangeLog.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ All notable changes are documented in this file using the [Keep a CHANGELOG](htt
2626
* This component no longer supports PHPDBG
2727
* This component no longer supports Xdebug 2
2828

29-
## [9.2.25] - 2023-MM-DD
29+
## [9.2.25] - 2023-02-25
3030

3131
### Fixed
3232

@@ -496,7 +496,7 @@ All notable changes are documented in this file using the [Keep a CHANGELOG](htt
496496

497497
[10.0.1]: https://github.com/sebastianbergmann/php-code-coverage/compare/10.0.0...10.0.1
498498
[10.0.0]: https://github.com/sebastianbergmann/php-code-coverage/compare/9.2.24...10.0.0
499-
[9.2.25]: https://github.com/sebastianbergmann/php-code-coverage/compare/9.2.24...9.2
499+
[9.2.25]: https://github.com/sebastianbergmann/php-code-coverage/compare/9.2.24...9.2.25
500500
[9.2.24]: https://github.com/sebastianbergmann/php-code-coverage/compare/9.2.23...9.2.24
501501
[9.2.23]: https://github.com/sebastianbergmann/php-code-coverage/compare/9.2.22...9.2.23
502502
[9.2.22]: https://github.com/sebastianbergmann/php-code-coverage/compare/9.2.21...9.2.22

src/StaticAnalysis/CodeUnitFindingVisitor.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
use PhpParser\Node\Stmt\Interface_;
2727
use PhpParser\Node\Stmt\Trait_;
2828
use PhpParser\Node\UnionType;
29+
use PhpParser\NodeAbstract;
2930
use PhpParser\NodeTraverser;
3031
use PhpParser\NodeVisitorAbstract;
3132
use SebastianBergmann\Complexity\CyclomaticComplexityCalculatingVisitor;
@@ -315,7 +316,10 @@ private function intersectionTypeAsString(IntersectionType $node): string
315316
return implode('&', $types);
316317
}
317318

318-
private function typeAsString(Identifier|Name $node): string
319+
/**
320+
* @psalm-param Identifier|Name $node $node
321+
*/
322+
private function typeAsString(NodeAbstract $node): string
319323
{
320324
if ($node instanceof Name) {
321325
return $node->toCodeString();

0 commit comments

Comments
 (0)