Revamp Factories return type extension and argument type rule #1115
Annotations
20 errors
|
PHPStan Static Analysis [PHP 8.2]:
src/Type/FakeFunctionReturnTypeExtension.php#L57
Parameter #1 $classReflection of method CodeIgniter\PHPStan\Type\ModelFetchedReturnTypeHelper::getFetchedReturnType() expects PHPStan\Reflection\ClassReflection, mixed given.
|
|
PHPStan Static Analysis [PHP 8.2]:
src/Type/FakeFunctionReturnTypeExtension.php#L55
Parameter #1 $array of function current expects array|object, mixed given.
|
|
PHPStan Static Analysis [PHP 8.2]:
src/Type/FakeFunctionReturnTypeExtension.php#L52
Method CodeIgniter\PHPStan\Type\FakeFunctionReturnTypeExtension::getTypeFromFunctionCall() should return PHPStan\Type\Type|null but returns mixed.
|
|
PHPStan Static Analysis [PHP 8.2]:
src/Type/FakeFunctionReturnTypeExtension.php#L51
Parameter #1 $value of function count expects array|Countable, mixed given.
|
|
PHPStan Static Analysis [PHP 8.2]:
src/Type/FakeFunctionReturnTypeExtension.php#L49
Cannot call method getObjectClassReflections() on mixed.
|
|
PHPStan Static Analysis [PHP 8.2]:
src/Type/FakeFunctionReturnTypeExtension.php#L45
Cannot call method yes() on mixed.
|
|
PHPStan Static Analysis [PHP 8.2]:
src/Type/FakeFunctionReturnTypeExtension.php#L45
Cannot call method isObject() on mixed.
|
|
PHPStan Static Analysis [PHP 8.2]:
src/Type/FakeFunctionReturnTypeExtension.php#L43
Call to method check() on an unknown class CodeIgniter\PHPStan\Type\FactoriesReturnTypeHelper.
|
|
PHPStan Static Analysis [PHP 8.2]:
src/Type/FakeFunctionReturnTypeExtension.php#L27
Property CodeIgniter\PHPStan\Type\FakeFunctionReturnTypeExtension::$factoriesReturnTypeHelper has unknown class CodeIgniter\PHPStan\Type\FactoriesReturnTypeHelper as its type.
|
|
PHPStan Static Analysis [PHP 8.2]:
src/Type/FakeFunctionReturnTypeExtension.php#L27
Parameter $factoriesReturnTypeHelper of method CodeIgniter\PHPStan\Type\FakeFunctionReturnTypeExtension::__construct() has invalid type CodeIgniter\PHPStan\Type\FactoriesReturnTypeHelper.
|
|
PHPStan Static Analysis [PHP 8.5]:
src/Type/FakeFunctionReturnTypeExtension.php#L57
Parameter #1 $classReflection of method CodeIgniter\PHPStan\Type\ModelFetchedReturnTypeHelper::getFetchedReturnType() expects PHPStan\Reflection\ClassReflection, mixed given.
|
|
PHPStan Static Analysis [PHP 8.5]:
src/Type/FakeFunctionReturnTypeExtension.php#L55
Parameter #1 $array of function current expects array|object, mixed given.
|
|
PHPStan Static Analysis [PHP 8.5]:
src/Type/FakeFunctionReturnTypeExtension.php#L52
Method CodeIgniter\PHPStan\Type\FakeFunctionReturnTypeExtension::getTypeFromFunctionCall() should return PHPStan\Type\Type|null but returns mixed.
|
|
PHPStan Static Analysis [PHP 8.5]:
src/Type/FakeFunctionReturnTypeExtension.php#L51
Parameter #1 $value of function count expects array|Countable, mixed given.
|
|
PHPStan Static Analysis [PHP 8.5]:
src/Type/FakeFunctionReturnTypeExtension.php#L49
Cannot call method getObjectClassReflections() on mixed.
|
|
PHPStan Static Analysis [PHP 8.5]:
src/Type/FakeFunctionReturnTypeExtension.php#L45
Cannot call method yes() on mixed.
|
|
PHPStan Static Analysis [PHP 8.5]:
src/Type/FakeFunctionReturnTypeExtension.php#L45
Cannot call method isObject() on mixed.
|
|
PHPStan Static Analysis [PHP 8.5]:
src/Type/FakeFunctionReturnTypeExtension.php#L43
Call to method check() on an unknown class CodeIgniter\PHPStan\Type\FactoriesReturnTypeHelper.
|
|
PHPStan Static Analysis [PHP 8.5]:
src/Type/FakeFunctionReturnTypeExtension.php#L27
Property CodeIgniter\PHPStan\Type\FakeFunctionReturnTypeExtension::$factoriesReturnTypeHelper has unknown class CodeIgniter\PHPStan\Type\FactoriesReturnTypeHelper as its type.
|
|
PHPStan Static Analysis [PHP 8.5]:
src/Type/FakeFunctionReturnTypeExtension.php#L27
Parameter $factoriesReturnTypeHelper of method CodeIgniter\PHPStan\Type\FakeFunctionReturnTypeExtension::__construct() has invalid type CodeIgniter\PHPStan\Type\FactoriesReturnTypeHelper.
|