On the road to phpstan 2.0 compatibility #517
Annotations
11 errors
|
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/Reflection/Framework/DataObjectMagicMethodReflectionExtensionUnitTest.php#L29
Property bitExpert\PHPStan\Magento\Reflection\Framework\DataObjectMagicMethodReflectionExtensionUnitTest::$extension is never written, only read.
|
Static code analysis:
tests/bitExpert/PHPStan/Magento/Reflection/Framework/DataObjectMagicMethodReflectionExtensionUnitTest.php#L34
Property bitExpert\PHPStan\Magento\Reflection\Framework\DataObjectMagicMethodReflectionExtensionUnitTest::$classReflection is never written, only read.
|
Static code analysis:
tests/bitExpert/PHPStan/Magento/Reflection/Framework/DataObjectMagicMethodReflectionExtensionUnitTest.php#L40
Unreachable statement - code above always terminates.
|
Static code analysis:
tests/bitExpert/PHPStan/Magento/Reflection/Framework/DataObjectMagicMethodReflectionExtensionUnitTest.php#L49
Parameter #1 $classReflection of method bitExpert\PHPStan\Magento\Reflection\AbstractMagicMethodReflectionExtension::getMethod() expects PHPStan\Reflection\ClassReflection, PHPStan\Reflection\ClassReflection|PHPUnit\Framework\MockObject\MockObject given.
|
Static code analysis:
tests/bitExpert/PHPStan/Magento/Reflection/Framework/DataObjectMagicMethodReflectionExtensionUnitTest.php#L66
Parameter #1 $classReflection of method bitExpert\PHPStan\Magento\Reflection\AbstractMagicMethodReflectionExtension::getMethod() expects PHPStan\Reflection\ClassReflection, PHPStan\Reflection\ClassReflection|PHPUnit\Framework\MockObject\MockObject given.
|
Static code analysis:
tests/bitExpert/PHPStan/Magento/Reflection/Framework/DataObjectMagicMethodReflectionExtensionUnitTest.php#L82
Parameter #1 $classReflection of method bitExpert\PHPStan\Magento\Reflection\AbstractMagicMethodReflectionExtension::getMethod() expects PHPStan\Reflection\ClassReflection, PHPStan\Reflection\ClassReflection|PHPUnit\Framework\MockObject\MockObject given.
|
Static code analysis:
tests/bitExpert/PHPStan/Magento/Reflection/Framework/DataObjectMagicMethodReflectionExtensionUnitTest.php#L99
Parameter #1 $classReflection of method bitExpert\PHPStan\Magento\Reflection\AbstractMagicMethodReflectionExtension::getMethod() expects PHPStan\Reflection\ClassReflection, PHPStan\Reflection\ClassReflection|PHPUnit\Framework\MockObject\MockObject given.
|
Loading