Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit cfc20fd

Browse files
Fixes after PHPStan update
1 parent 8d9bbb4 commit cfc20fd

File tree

5 files changed

+4
-9
lines changed

5 files changed

+4
-9
lines changed

‎composer.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
},
2020
"require-dev": {
2121
"nette/application": "^3.0",
22+
"nette/di": "^3.1.10",
2223
"nette/forms": "^3.0",
2324
"nette/utils": "^2.3.0 || ^3.0.0",
2425
"php-parallel-lint/php-parallel-lint": "^1.2",

‎src/Reflection/Nette/HtmlMethodReflection.php‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
use PHPStan\Reflection\ClassReflection;
77
use PHPStan\Reflection\FunctionVariant;
88
use PHPStan\Reflection\MethodReflection;
9-
use PHPStan\Reflection\ParametersAcceptor;
109
use PHPStan\TrinaryLogic;
1110
use PHPStan\Type\Generic\TemplateTypeMap;
1211
use PHPStan\Type\MixedType;
@@ -43,9 +42,6 @@ public function isStatic(): bool
4342
return false;
4443
}
4544

46-
/**
47-
* @return ParametersAcceptor[]
48-
*/
4945
public function getVariants(): array
5046
{
5147
return [

‎src/Reflection/Nette/NetteObjectEventListenerMethodReflection.php‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,6 @@ public function isStatic(): bool
4545
return false;
4646
}
4747

48-
/**
49-
* @return ParametersAcceptor[]
50-
*/
5148
public function getVariants(): array
5249
{
5350
return [

‎src/Type/Nette/ServiceLocatorDynamicReturnTypeExtension.php‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace PHPStan\Type\Nette;
44

5+
use Nette\DI\Container;
56
use PhpParser\Node\Expr\MethodCall;
67
use PHPStan\Analyser\Scope;
78
use PHPStan\Reflection\MethodReflection;
@@ -18,7 +19,7 @@ class ServiceLocatorDynamicReturnTypeExtension implements DynamicMethodReturnTyp
1819

1920
public function getClass(): string
2021
{
21-
return 'Nette\DI\Container';
22+
return Container::class;
2223
}
2324

2425
public function isMethodSupported(MethodReflection $methodReflection): bool

‎tests/Rule/Nette/PresenterInjectedPropertiesExtensionTest.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
class PresenterInjectedPropertiesExtensionTest extends LevelsTestCase
99
{
1010

11-
public function dataTopics(): array
11+
public staticfunction dataTopics(): array
1212
{
1313
if (PHP_VERSION_ID < 70400) {
1414
self::markTestSkipped('Only for PHP 7.4+');

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /