On the road to phpstan 2.0 compatibility #517
Annotations
10 errors and 2 warnings
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.
|
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Loading