Skip to content

Commit 0b004cd

Browse files
committed
Fixed compatibility with PHPStan 0.11
1 parent 6631fbb commit 0b004cd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Type/Nette/ComponentModelArrayAccessDynamicReturnTypeExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function getTypeFromMethodCall(
4747
$componentName = $argType->getValue();
4848

4949
$methodName = sprintf('createComponent%s', ucfirst($componentName));
50-
if ($calledOnType->hasMethod($methodName)->no()) {
50+
if (!$calledOnType->hasMethod($methodName)->yes()) {
5151
return $mixedType;
5252
}
5353

src/Type/Nette/ComponentModelDynamicReturnTypeExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function getTypeFromMethodCall(
4747
$componentName = $argType->getValue();
4848

4949
$methodName = sprintf('createComponent%s', ucfirst($componentName));
50-
if ($calledOnType->hasMethod($methodName)->no()) {
50+
if (!$calledOnType->hasMethod($methodName)->yes()) {
5151
return $mixedType;
5252
}
5353

0 commit comments

Comments
 (0)