Fix different first/max result values taking up query cache space #6891
static-analysis.yml
on: pull_request
Static Analysis with Psalm
24s
Matrix: Static Analysis with PHPStan
Annotations
10 errors and 4 warnings
PossiblyNullPropertyAssignmentValue:
lib/Doctrine/ORM/Query.php#L153
lib/Doctrine/ORM/Query.php:153:28: PossiblyNullPropertyAssignmentValue: $this->sqlExecutor with non-nullable declared type 'Doctrine\ORM\Query\Exec\AbstractSqlExecutor' cannot be assigned nullable type 'null' (see https://psalm.dev/148)
|
LessSpecificReturnStatement:
lib/Doctrine/ORM/Query.php#L204
lib/Doctrine/ORM/Query.php:204:16: LessSpecificReturnStatement: The type 'array<array-key, mixed>|string' is more general than the declared return type 'list<string>|string' for Doctrine\ORM\Query::getSQL (see https://psalm.dev/129)
|
PropertyNotSetInConstructor:
lib/Doctrine/ORM/Query/Exec/FinalizedSelectExecutor.php#L14
lib/Doctrine/ORM/Query/Exec/FinalizedSelectExecutor.php:14:7: PropertyNotSetInConstructor: Property Doctrine\ORM\Query\Exec\FinalizedSelectExecutor::$_sqlStatements is not defined in constructor of Doctrine\ORM\Query\Exec\FinalizedSelectExecutor or in any methods called in the constructor (see https://psalm.dev/074)
|
PropertyNotSetInConstructor:
lib/Doctrine/ORM/Query/Exec/FinalizedSelectExecutor.php#L14
lib/Doctrine/ORM/Query/Exec/FinalizedSelectExecutor.php:14:7: PropertyNotSetInConstructor: Property Doctrine\ORM\Query\Exec\FinalizedSelectExecutor::$queryCacheProfile is not defined in constructor of Doctrine\ORM\Query\Exec\FinalizedSelectExecutor or in any methods called in the constructor (see https://psalm.dev/074)
|
PossiblyInvalidArgument:
lib/Doctrine/ORM/Query/Exec/FinalizedSelectExecutor.php#L29
lib/Doctrine/ORM/Query/Exec/FinalizedSelectExecutor.php:29:36: PossiblyInvalidArgument: Argument 1 of Doctrine\DBAL\Connection::executeQuery expects string, but possibly different type array<array-key, mixed>|string provided (see https://psalm.dev/092)
|
PossiblyNullPropertyAssignmentValue:
lib/Doctrine/ORM/Query/ParserResult.php#L40
lib/Doctrine/ORM/Query/ParserResult.php:40:29: PossiblyNullPropertyAssignmentValue: $this->sqlFinalizer with non-nullable declared type 'Doctrine\ORM\Query\Exec\SqlFinalizer' cannot be assigned nullable type 'null' (see https://psalm.dev/148)
|
DocblockTypeContradiction:
lib/Doctrine/ORM/Query/ParserResult.php#L114
lib/Doctrine/ORM/Query/ParserResult.php:114:13: DocblockTypeContradiction: Doctrine\ORM\Query\Exec\SqlFinalizer does not contain null (see https://psalm.dev/155)
|
RedundantConditionGivenDocblockType:
lib/Doctrine/ORM/Query/ParserResult.php#L123
lib/Doctrine/ORM/Query/ParserResult.php:123:16: RedundantConditionGivenDocblockType: Docblock-defined type Doctrine\ORM\Query\Exec\SqlFinalizer can never contain null (see https://psalm.dev/156)
|
UnusedBaselineEntry:
lib/Doctrine/ORM/Query.php#L1
lib/Doctrine/ORM/Query.php:0:0: UnusedBaselineEntry: Baseline for issue "LessSpecificReturnStatement" has 1 extra entry. (see https://psalm.dev/316)
|
Static Analysis with Psalm
Process completed with exit code 2.
|
Static Analysis with Psalm
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Static Analysis with PHPStan (default, 2.5)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Static Analysis with PHPStan (2.13, default)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Static Analysis with PHPStan (default, default)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|