Skip to content

Commit e936a76

Browse files
committed
Update BetterReflection
1 parent 3b47bc0 commit e936a76

File tree

3 files changed

+15
-14
lines changed

3 files changed

+15
-14
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"nette/utils": "^3.2.5",
2525
"nikic/php-parser": "^5.3.0",
2626
"ondram/ci-detector": "^3.4.0",
27-
"ondrejmirtes/better-reflection": "6.42.0.11",
27+
"ondrejmirtes/better-reflection": "6.43.0.2",
2828
"phpstan/php-8-stubs": "0.4.6",
2929
"phpstan/phpdoc-parser": "2.0.0",
3030
"psr/http-message": "^1.1",

composer.lock

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/PHPStan/Analyser/nsrt/adapter-reflection-enum-return-types.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@
55
use PHPStan\BetterReflection\Reflection\Adapter\ReflectionEnum;
66
use PHPStan\BetterReflection\Reflection\Adapter\ReflectionEnumBackedCase;
77
use PHPStan\BetterReflection\Reflection\Adapter\ReflectionEnumUnitCase;
8+
use PHPStan\BetterReflection\Reflection\Adapter\ReflectionType;
89
use function PHPStan\Testing\assertType;
910

1011
function (ReflectionEnum $r, string $s): void {
1112
assertType('non-empty-string|false', $r->getFileName());
12-
assertType('int|false', $r->getStartLine());
13-
assertType('int|false', $r->getEndLine());
13+
assertType('int', $r->getStartLine());
14+
assertType('int', $r->getEndLine());
1415
assertType('string|false', $r->getDocComment());
1516
assertType('PHPStan\BetterReflection\Reflection\Adapter\ReflectionClassConstant|false', $r->getReflectionConstant($s));
1617
assertType('PHPStan\BetterReflection\Reflection\Adapter\ReflectionClass|false', $r->getParentClass());
@@ -20,10 +21,10 @@ function (ReflectionEnum $r, string $s): void {
2021

2122
function (ReflectionEnumBackedCase $r): void {
2223
assertType('string|false', $r->getDocComment());
23-
assertType('PHPStan\BetterReflection\Reflection\Adapter\ReflectionIntersectionType|PHPStan\BetterReflection\Reflection\Adapter\ReflectionNamedType|PHPStan\BetterReflection\Reflection\Adapter\ReflectionUnionType|null', $r->getType());
24+
assertType(ReflectionType::class . '|null', $r->getType());
2425
};
2526

2627
function (ReflectionEnumUnitCase $r): void {
2728
assertType('string|false', $r->getDocComment());
28-
assertType('PHPStan\BetterReflection\Reflection\Adapter\ReflectionIntersectionType|PHPStan\BetterReflection\Reflection\Adapter\ReflectionNamedType|PHPStan\BetterReflection\Reflection\Adapter\ReflectionUnionType|null', $r->getType());
29+
assertType(ReflectionType::class . '|null', $r->getType());
2930
};

0 commit comments

Comments
 (0)