On the road to phpstan 2.0 compatibility #517
Annotations
11 errors
|
Static code analysis:
src/bitExpert/PHPStan/Magento/Autoload/ExtensionAutoloader.php#L166
Binary operation "." between "<?php\n\n" and mixed results in an error.
|
Static code analysis:
src/bitExpert/PHPStan/Magento/Autoload/ExtensionInterfaceAutoloader.php#L135
Binary operation "." between "<?php\n\n" and mixed results in an error.
|
Static code analysis:
src/bitExpert/PHPStan/Magento/Rules/GetCollectionMockMethodNeedsCollectionSubclassRule.php#L71
PHPDoc tag @var assumes the expression with type PHPStan\Type\Type is always PHPStan\Type\Constant\ConstantStringType but it's error-prone and dangerous.
|
Static code analysis:
src/bitExpert/PHPStan/Magento/Type/TestFrameworkObjectManagerDynamicReturnTypeExtension.php#L132
PHPDoc tag @var assumes the expression with type PHPStan\Type\Type is always PHPStan\Type\Constant\ConstantStringType but it's error-prone and dangerous.
|
Static code analysis:
src/bitExpert/PHPStan/Magento/Type/TestFrameworkObjectManagerDynamicReturnTypeExtension.php#L135
Function is_subclass_of() is a runtime reflection concept that might not work in PHPStan because it uses fully static reflection engine. Use objects retrieved from ReflectionProvider instead.
|
Static code analysis:
tests/bitExpert/PHPStan/Magento/Autoload/RegistrationUnitTest.php#L33
Binary operation "+" between mixed and 1 results in an error.
|
Static code analysis:
tests/bitExpert/PHPStan/Magento/Autoload/RegistrationUnitTest.php#L33
Parameter #1 $var of function count expects array|Countable, list<callable>|false given.
|
Static code analysis:
tests/bitExpert/PHPStan/Magento/Autoload/RegistrationUnitTest.php#L33
Parameter #2 $haystack of static method PHPUnit\Framework\Assert::assertCount() expects Countable|iterable, list<callable>|false given.
|
Static code analysis:
tests/bitExpert/PHPStan/Magento/Autoload/RegistrationUnitTest.php#L38
Parameter #1 $expectedCount of static method PHPUnit\Framework\Assert::assertCount() expects int, mixed given.
|
Static code analysis:
tests/bitExpert/PHPStan/Magento/Autoload/RegistrationUnitTest.php#L38
Parameter #1 $var of function count expects array|Countable, list<callable>|false given.
|
Loading