Skip to content

Commit 72abfd0

Browse files
committed
Merge branch '1.10.x' into 1.11.x
2 parents 5acae33 + 3f40c9d commit 72abfd0

File tree

4 files changed

+22
-41
lines changed

4 files changed

+22
-41
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
"nette/neon": "^3.3.1",
2222
"nette/schema": "^1.2.2",
2323
"nette/utils": "^3.2.5",
24-
"nikic/php-parser": "^4.15.4",
24+
"nikic/php-parser": "^4.15.5",
2525
"ondram/ci-detector": "^3.4.0",
26-
"ondrejmirtes/better-reflection": "6.8.0.1",
26+
"ondrejmirtes/better-reflection": "6.11.0.0",
2727
"phpstan/php-8-stubs": "0.3.60",
2828
"phpstan/phpdoc-parser": "1.22.0",
2929
"react/async": "^3",

composer.lock

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

phpstan-baseline.neon

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -277,16 +277,6 @@ parameters:
277277
count: 1
278278
path: src/Reflection/BetterReflection/BetterReflectionProvider.php
279279

280-
-
281-
message: "#^Dead catch \\- PHPStan\\\\BetterReflection\\\\Reflection\\\\Exception\\\\NotAClassReflection is never thrown in the try block\\.$#"
282-
count: 1
283-
path: src/Reflection/BetterReflection/BetterReflectionProvider.php
284-
285-
-
286-
message: "#^Dead catch \\- PHPStan\\\\BetterReflection\\\\Reflection\\\\Exception\\\\NotAnInterfaceReflection is never thrown in the try block\\.$#"
287-
count: 1
288-
path: src/Reflection/BetterReflection/BetterReflectionProvider.php
289-
290280
-
291281
message: """
292282
#^Call to deprecated method getTypeFromValue\\(\\) of class PHPStan\\\\Type\\\\ConstantTypeHelper\\:

src/Type/CallableTypeHelper.php

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -95,16 +95,7 @@ public static function isParametersAcceptorSuperTypeOf(
9595

9696
$theirReturnType = $theirs->getReturnType();
9797
if ($treatMixedAsAny) {
98-
if (
99-
$theirReturnType instanceof MixedType
100-
&& !$theirReturnType instanceof TemplateMixedType
101-
) {
102-
$isReturnTypeSuperType = new AcceptsResult(TrinaryLogic::createYes(), []);
103-
} elseif ($theirReturnType instanceof BenevolentUnionType) {
104-
$isReturnTypeSuperType = $ours->getReturnType()->acceptsWithReason($theirReturnType, true);
105-
} else {
106-
$isReturnTypeSuperType = new AcceptsResult($ours->getReturnType()->isSuperTypeOf($theirReturnType), []);
107-
}
98+
$isReturnTypeSuperType = $ours->getReturnType()->acceptsWithReason($theirReturnType, true);
10899
} else {
109100
$isReturnTypeSuperType = new AcceptsResult($ours->getReturnType()->isSuperTypeOf($theirReturnType), []);
110101
}

0 commit comments

Comments
 (0)