Skip to content

Introduce default hydration mode #1546

Introduce default hydration mode

Introduce default hydration mode #1546

Triggered via pull request October 25, 2025 16:13
Status Failure
Total duration 1m 44s
Artifacts

build.yml

on: pull_request
Matrix: PHPStan
Matrix: Tests
Coding Standard
23s
Coding Standard
Matrix: Lint
Matrix: Mutation Testing
Fit to window
Zoom out
Zoom in

Annotations

84 errors
Coding Standard
Process completed with exit code 2.
PHPStan (8.4): tests/Platform/QueryResultTypeWalkerFetchTypeMatrixTest.php#L5072
Generic type Doctrine\ORM\Query<null, mixed> in PHPDoc tag `@param` for parameter $query does not specify all template types of class Doctrine\ORM\Query: TKey, TResult, THydrationMode
PHPStan (8.4): tests/Platform/QueryResultTypeWalkerFetchTypeMatrixTest.php#L4590
Generic type Doctrine\ORM\Query<null, mixed> in PHPDoc tag `@param` for parameter $query does not specify all template types of class Doctrine\ORM\Query: TKey, TResult, THydrationMode
PHPStan (8.4): tests/Platform/QueryResultTypeWalkerFetchTypeMatrixTest.php#L4548
Generic type Doctrine\ORM\Query<null, mixed> in PHPDoc tag `@return` does not specify all template types of class Doctrine\ORM\Query: TKey, TResult, THydrationMode
PHPStan (8.4): stubs/ORM/Tools/Pagination/Paginator.stub#L22
Generic type Doctrine\ORM\Query<mixed, mixed> in PHPDoc tag `@param` for parameter $query does not specify all template types of class Doctrine\ORM\Query: TKey, TResult, THydrationMode
PHPStan (8.4): stubs/ORM/QueryBuilder.stub#L22
Generic type Doctrine\ORM\Query<null, mixed> in PHPDoc tag `@return` does not specify all template types of class Doctrine\ORM\Query: TKey, TResult, THydrationMode
PHPStan (8.4): stubs/ORM/Query.stub#L12
Type int|string in generic type Doctrine\ORM\AbstractQuery<mixed, mixed, int|string> in PHPDoc tag `@extends` is not subtype of template type THydrationMode of int|string = int of class Doctrine\ORM\AbstractQuery.
PHPStan (8.4): src/Type/Doctrine/Query/QueryResultTypeWalker.php#L161
Generic type Doctrine\ORM\Query<null, mixed> in PHPDoc tag `@param` for parameter $query does not specify all template types of class Doctrine\ORM\Query: TKey, TResult, THydrationMode
PHPStan (8.4): src/Type/Doctrine/Query/QueryResultTypeWalker.php#L135
Generic type Doctrine\ORM\Query<null, mixed> in PHPDoc tag `@param` for parameter $query does not specify all template types of class Doctrine\ORM\Query: TKey, TResult, THydrationMode
PHPStan (8.4): src/Type/Doctrine/Query/QueryResultTypeWalker.php#L102
Generic type Doctrine\ORM\Query<null, mixed> in PHPDoc tag `@var` for property PHPStan\Type\Doctrine\Query\QueryResultTypeWalker::$query does not specify all template types of class Doctrine\ORM\Query: TKey, TResult, THydrationMode
PHPStan (8.4): src/Type/Doctrine/Query/QueryResultDynamicReturnTypeExtension.php#L30
Property PHPStan\Type\Doctrine\Query\QueryResultDynamicReturnTypeExtension::$objectMetadataResolver is never read, only written.
PHPStan (7.4): tests/Platform/QueryResultTypeWalkerFetchTypeMatrixTest.php#L4590
Generic type Doctrine\ORM\Query<null, mixed> in PHPDoc tag `@param` for parameter $query does not specify all template types of class Doctrine\ORM\Query: TKey, TResult, THydrationMode
PHPStan (7.4): tests/Platform/QueryResultTypeWalkerFetchTypeMatrixTest.php#L4548
Generic type Doctrine\ORM\Query<null, mixed> in PHPDoc tag `@return` does not specify all template types of class Doctrine\ORM\Query: TKey, TResult, THydrationMode
PHPStan (7.4): stubs/ORM/Tools/Pagination/Paginator.stub#L22
Generic type Doctrine\ORM\Query<mixed, mixed> in PHPDoc tag `@param` for parameter $query does not specify all template types of class Doctrine\ORM\Query: TKey, TResult, THydrationMode
PHPStan (7.4): stubs/ORM/QueryBuilder.stub#L22
Generic type Doctrine\ORM\Query<null, mixed> in PHPDoc tag `@return` does not specify all template types of class Doctrine\ORM\Query: TKey, TResult, THydrationMode
PHPStan (7.4): stubs/ORM/Query.stub#L12
Type int|string in generic type Doctrine\ORM\AbstractQuery<mixed, mixed, int|string> in PHPDoc tag `@extends` is not subtype of template type THydrationMode of int|string = int of class Doctrine\ORM\AbstractQuery.
PHPStan (7.4): stubs/ORM/AbstractQuery.stub#L93
Method Doctrine\ORM\AbstractQuery::setHydrationMode() uses native union types but they're supported only on PHP 8.0 and later.
PHPStan (7.4): src/Type/Doctrine/Query/QueryResultTypeWalker.php#L161
Generic type Doctrine\ORM\Query<null, mixed> in PHPDoc tag `@param` for parameter $query does not specify all template types of class Doctrine\ORM\Query: TKey, TResult, THydrationMode
PHPStan (7.4): src/Type/Doctrine/Query/QueryResultTypeWalker.php#L135
Generic type Doctrine\ORM\Query<null, mixed> in PHPDoc tag `@param` for parameter $query does not specify all template types of class Doctrine\ORM\Query: TKey, TResult, THydrationMode
PHPStan (7.4): src/Type/Doctrine/Query/QueryResultTypeWalker.php#L102
Generic type Doctrine\ORM\Query<null, mixed> in PHPDoc tag `@var` for property PHPStan\Type\Doctrine\Query\QueryResultTypeWalker::$query does not specify all template types of class Doctrine\ORM\Query: TKey, TResult, THydrationMode
PHPStan (7.4): src/Type/Doctrine/Query/QueryResultDynamicReturnTypeExtension.php#L30
Property PHPStan\Type\Doctrine\Query\QueryResultDynamicReturnTypeExtension::$objectMetadataResolver is never read, only written.
PHPStan (8.3): tests/Platform/QueryResultTypeWalkerFetchTypeMatrixTest.php#L5072
Generic type Doctrine\ORM\Query<null, mixed> in PHPDoc tag `@param` for parameter $query does not specify all template types of class Doctrine\ORM\Query: TKey, TResult, THydrationMode
PHPStan (8.3): tests/Platform/QueryResultTypeWalkerFetchTypeMatrixTest.php#L4590
Generic type Doctrine\ORM\Query<null, mixed> in PHPDoc tag `@param` for parameter $query does not specify all template types of class Doctrine\ORM\Query: TKey, TResult, THydrationMode
PHPStan (8.3): tests/Platform/QueryResultTypeWalkerFetchTypeMatrixTest.php#L4548
Generic type Doctrine\ORM\Query<null, mixed> in PHPDoc tag `@return` does not specify all template types of class Doctrine\ORM\Query: TKey, TResult, THydrationMode
PHPStan (8.3): stubs/ORM/Tools/Pagination/Paginator.stub#L22
Generic type Doctrine\ORM\Query<mixed, mixed> in PHPDoc tag `@param` for parameter $query does not specify all template types of class Doctrine\ORM\Query: TKey, TResult, THydrationMode
PHPStan (8.3): stubs/ORM/QueryBuilder.stub#L22
Generic type Doctrine\ORM\Query<null, mixed> in PHPDoc tag `@return` does not specify all template types of class Doctrine\ORM\Query: TKey, TResult, THydrationMode
PHPStan (8.3): stubs/ORM/Query.stub#L12
Type int|string in generic type Doctrine\ORM\AbstractQuery<mixed, mixed, int|string> in PHPDoc tag `@extends` is not subtype of template type THydrationMode of int|string = int of class Doctrine\ORM\AbstractQuery.
PHPStan (8.3): src/Type/Doctrine/Query/QueryResultTypeWalker.php#L161
Generic type Doctrine\ORM\Query<null, mixed> in PHPDoc tag `@param` for parameter $query does not specify all template types of class Doctrine\ORM\Query: TKey, TResult, THydrationMode
PHPStan (8.3): src/Type/Doctrine/Query/QueryResultTypeWalker.php#L135
Generic type Doctrine\ORM\Query<null, mixed> in PHPDoc tag `@param` for parameter $query does not specify all template types of class Doctrine\ORM\Query: TKey, TResult, THydrationMode
PHPStan (8.3): src/Type/Doctrine/Query/QueryResultTypeWalker.php#L102
Generic type Doctrine\ORM\Query<null, mixed> in PHPDoc tag `@var` for property PHPStan\Type\Doctrine\Query\QueryResultTypeWalker::$query does not specify all template types of class Doctrine\ORM\Query: TKey, TResult, THydrationMode
PHPStan (8.3): src/Type/Doctrine/Query/QueryResultDynamicReturnTypeExtension.php#L30
Property PHPStan\Type\Doctrine\Query\QueryResultDynamicReturnTypeExtension::$objectMetadataResolver is never read, only written.
PHPStan (8.3, composer require --dev doctrine/orm:^3.0 doctrine/dbal:^4.0 carbonphp/carbon-doctri...: tests/Platform/QueryResultTypeWalkerFetchTypeMatrixTest.php#L5072
Generic type Doctrine\ORM\Query<null, mixed> in PHPDoc tag `@param` for parameter $query does not specify all template types of class Doctrine\ORM\Query: TKey, TResult, THydrationMode
PHPStan (8.3, composer require --dev doctrine/orm:^3.0 doctrine/dbal:^4.0 carbonphp/carbon-doctri...: tests/Platform/QueryResultTypeWalkerFetchTypeMatrixTest.php#L4590
Generic type Doctrine\ORM\Query<null, mixed> in PHPDoc tag `@param` for parameter $query does not specify all template types of class Doctrine\ORM\Query: TKey, TResult, THydrationMode
PHPStan (8.3, composer require --dev doctrine/orm:^3.0 doctrine/dbal:^4.0 carbonphp/carbon-doctri...: tests/Platform/QueryResultTypeWalkerFetchTypeMatrixTest.php#L4548
Generic type Doctrine\ORM\Query<null, mixed> in PHPDoc tag `@return` does not specify all template types of class Doctrine\ORM\Query: TKey, TResult, THydrationMode
PHPStan (8.3, composer require --dev doctrine/orm:^3.0 doctrine/dbal:^4.0 carbonphp/carbon-doctri...: stubs/ORM/Tools/Pagination/Paginator.stub#L22
Generic type Doctrine\ORM\Query<mixed, mixed> in PHPDoc tag `@param` for parameter $query does not specify all template types of class Doctrine\ORM\Query: TKey, TResult, THydrationMode
PHPStan (8.3, composer require --dev doctrine/orm:^3.0 doctrine/dbal:^4.0 carbonphp/carbon-doctri...: stubs/ORM/QueryBuilder.stub#L22
Generic type Doctrine\ORM\Query<null, mixed> in PHPDoc tag `@return` does not specify all template types of class Doctrine\ORM\Query: TKey, TResult, THydrationMode
PHPStan (8.3, composer require --dev doctrine/orm:^3.0 doctrine/dbal:^4.0 carbonphp/carbon-doctri...: stubs/ORM/Query.stub#L12
Type int|string in generic type Doctrine\ORM\AbstractQuery<mixed, mixed, int|string> in PHPDoc tag `@extends` is not subtype of template type THydrationMode of int|string = int of class Doctrine\ORM\AbstractQuery.
PHPStan (8.3, composer require --dev doctrine/orm:^3.0 doctrine/dbal:^4.0 carbonphp/carbon-doctri...: src/Type/Doctrine/Query/QueryResultTypeWalker.php#L161
Generic type Doctrine\ORM\Query<null, mixed> in PHPDoc tag `@param` for parameter $query does not specify all template types of class Doctrine\ORM\Query: TKey, TResult, THydrationMode
PHPStan (8.3, composer require --dev doctrine/orm:^3.0 doctrine/dbal:^4.0 carbonphp/carbon-doctri...: src/Type/Doctrine/Query/QueryResultTypeWalker.php#L135
Generic type Doctrine\ORM\Query<null, mixed> in PHPDoc tag `@param` for parameter $query does not specify all template types of class Doctrine\ORM\Query: TKey, TResult, THydrationMode
PHPStan (8.3, composer require --dev doctrine/orm:^3.0 doctrine/dbal:^4.0 carbonphp/carbon-doctri...: src/Type/Doctrine/Query/QueryResultTypeWalker.php#L102
Generic type Doctrine\ORM\Query<null, mixed> in PHPDoc tag `@var` for property PHPStan\Type\Doctrine\Query\QueryResultTypeWalker::$query does not specify all template types of class Doctrine\ORM\Query: TKey, TResult, THydrationMode
PHPStan (8.3, composer require --dev doctrine/orm:^3.0 doctrine/dbal:^4.0 carbonphp/carbon-doctri...: src/Type/Doctrine/Query/QueryResultDynamicReturnTypeExtension.php#L30
Property PHPStan\Type\Doctrine\Query\QueryResultDynamicReturnTypeExtension::$objectMetadataResolver is never read, only written.
PHPStan (8.1): tests/Platform/QueryResultTypeWalkerFetchTypeMatrixTest.php#L5072
Generic type Doctrine\ORM\Query<null, mixed> in PHPDoc tag `@param` for parameter $query does not specify all template types of class Doctrine\ORM\Query: TKey, TResult, THydrationMode
PHPStan (8.1): tests/Platform/QueryResultTypeWalkerFetchTypeMatrixTest.php#L4590
Generic type Doctrine\ORM\Query<null, mixed> in PHPDoc tag `@param` for parameter $query does not specify all template types of class Doctrine\ORM\Query: TKey, TResult, THydrationMode
PHPStan (8.1): tests/Platform/QueryResultTypeWalkerFetchTypeMatrixTest.php#L4548
Generic type Doctrine\ORM\Query<null, mixed> in PHPDoc tag `@return` does not specify all template types of class Doctrine\ORM\Query: TKey, TResult, THydrationMode
PHPStan (8.1): stubs/ORM/Tools/Pagination/Paginator.stub#L22
Generic type Doctrine\ORM\Query<mixed, mixed> in PHPDoc tag `@param` for parameter $query does not specify all template types of class Doctrine\ORM\Query: TKey, TResult, THydrationMode
PHPStan (8.1): stubs/ORM/QueryBuilder.stub#L22
Generic type Doctrine\ORM\Query<null, mixed> in PHPDoc tag `@return` does not specify all template types of class Doctrine\ORM\Query: TKey, TResult, THydrationMode
PHPStan (8.1): stubs/ORM/Query.stub#L12
Type int|string in generic type Doctrine\ORM\AbstractQuery<mixed, mixed, int|string> in PHPDoc tag `@extends` is not subtype of template type THydrationMode of int|string = int of class Doctrine\ORM\AbstractQuery.
PHPStan (8.1): src/Type/Doctrine/Query/QueryResultTypeWalker.php#L161
Generic type Doctrine\ORM\Query<null, mixed> in PHPDoc tag `@param` for parameter $query does not specify all template types of class Doctrine\ORM\Query: TKey, TResult, THydrationMode
PHPStan (8.1): src/Type/Doctrine/Query/QueryResultTypeWalker.php#L135
Generic type Doctrine\ORM\Query<null, mixed> in PHPDoc tag `@param` for parameter $query does not specify all template types of class Doctrine\ORM\Query: TKey, TResult, THydrationMode
PHPStan (8.1): src/Type/Doctrine/Query/QueryResultTypeWalker.php#L102
Generic type Doctrine\ORM\Query<null, mixed> in PHPDoc tag `@var` for property PHPStan\Type\Doctrine\Query\QueryResultTypeWalker::$query does not specify all template types of class Doctrine\ORM\Query: TKey, TResult, THydrationMode
PHPStan (8.1): src/Type/Doctrine/Query/QueryResultDynamicReturnTypeExtension.php#L30
Property PHPStan\Type\Doctrine\Query\QueryResultDynamicReturnTypeExtension::$objectMetadataResolver is never read, only written.
PHPStan (8.0): tests/Platform/QueryResultTypeWalkerFetchTypeMatrixTest.php#L5072
Generic type Doctrine\ORM\Query<null, mixed> in PHPDoc tag `@param` for parameter $query does not specify all template types of class Doctrine\ORM\Query: TKey, TResult, THydrationMode
PHPStan (8.0): tests/Platform/QueryResultTypeWalkerFetchTypeMatrixTest.php#L4590
Generic type Doctrine\ORM\Query<null, mixed> in PHPDoc tag `@param` for parameter $query does not specify all template types of class Doctrine\ORM\Query: TKey, TResult, THydrationMode
PHPStan (8.0): tests/Platform/QueryResultTypeWalkerFetchTypeMatrixTest.php#L4548
Generic type Doctrine\ORM\Query<null, mixed> in PHPDoc tag `@return` does not specify all template types of class Doctrine\ORM\Query: TKey, TResult, THydrationMode
PHPStan (8.0): stubs/ORM/Tools/Pagination/Paginator.stub#L22
Generic type Doctrine\ORM\Query<mixed, mixed> in PHPDoc tag `@param` for parameter $query does not specify all template types of class Doctrine\ORM\Query: TKey, TResult, THydrationMode
PHPStan (8.0): stubs/ORM/QueryBuilder.stub#L22
Generic type Doctrine\ORM\Query<null, mixed> in PHPDoc tag `@return` does not specify all template types of class Doctrine\ORM\Query: TKey, TResult, THydrationMode
PHPStan (8.0): stubs/ORM/Query.stub#L12
Type int|string in generic type Doctrine\ORM\AbstractQuery<mixed, mixed, int|string> in PHPDoc tag `@extends` is not subtype of template type THydrationMode of int|string = int of class Doctrine\ORM\AbstractQuery.
PHPStan (8.0): src/Type/Doctrine/Query/QueryResultTypeWalker.php#L161
Generic type Doctrine\ORM\Query<null, mixed> in PHPDoc tag `@param` for parameter $query does not specify all template types of class Doctrine\ORM\Query: TKey, TResult, THydrationMode
PHPStan (8.0): src/Type/Doctrine/Query/QueryResultTypeWalker.php#L135
Generic type Doctrine\ORM\Query<null, mixed> in PHPDoc tag `@param` for parameter $query does not specify all template types of class Doctrine\ORM\Query: TKey, TResult, THydrationMode
PHPStan (8.0): src/Type/Doctrine/Query/QueryResultTypeWalker.php#L102
Generic type Doctrine\ORM\Query<null, mixed> in PHPDoc tag `@var` for property PHPStan\Type\Doctrine\Query\QueryResultTypeWalker::$query does not specify all template types of class Doctrine\ORM\Query: TKey, TResult, THydrationMode
PHPStan (8.0): src/Type/Doctrine/Query/QueryResultDynamicReturnTypeExtension.php#L30
Property PHPStan\Type\Doctrine\Query\QueryResultDynamicReturnTypeExtension::$objectMetadataResolver is never read, only written.
PHPStan (8.2): tests/Platform/QueryResultTypeWalkerFetchTypeMatrixTest.php#L5072
Generic type Doctrine\ORM\Query<null, mixed> in PHPDoc tag `@param` for parameter $query does not specify all template types of class Doctrine\ORM\Query: TKey, TResult, THydrationMode
PHPStan (8.2): tests/Platform/QueryResultTypeWalkerFetchTypeMatrixTest.php#L4590
Generic type Doctrine\ORM\Query<null, mixed> in PHPDoc tag `@param` for parameter $query does not specify all template types of class Doctrine\ORM\Query: TKey, TResult, THydrationMode
PHPStan (8.2): tests/Platform/QueryResultTypeWalkerFetchTypeMatrixTest.php#L4548
Generic type Doctrine\ORM\Query<null, mixed> in PHPDoc tag `@return` does not specify all template types of class Doctrine\ORM\Query: TKey, TResult, THydrationMode
PHPStan (8.2): stubs/ORM/Tools/Pagination/Paginator.stub#L22
Generic type Doctrine\ORM\Query<mixed, mixed> in PHPDoc tag `@param` for parameter $query does not specify all template types of class Doctrine\ORM\Query: TKey, TResult, THydrationMode
PHPStan (8.2): stubs/ORM/QueryBuilder.stub#L22
Generic type Doctrine\ORM\Query<null, mixed> in PHPDoc tag `@return` does not specify all template types of class Doctrine\ORM\Query: TKey, TResult, THydrationMode
PHPStan (8.2): stubs/ORM/Query.stub#L12
Type int|string in generic type Doctrine\ORM\AbstractQuery<mixed, mixed, int|string> in PHPDoc tag `@extends` is not subtype of template type THydrationMode of int|string = int of class Doctrine\ORM\AbstractQuery.
PHPStan (8.2): src/Type/Doctrine/Query/QueryResultTypeWalker.php#L161
Generic type Doctrine\ORM\Query<null, mixed> in PHPDoc tag `@param` for parameter $query does not specify all template types of class Doctrine\ORM\Query: TKey, TResult, THydrationMode
PHPStan (8.2): src/Type/Doctrine/Query/QueryResultTypeWalker.php#L135
Generic type Doctrine\ORM\Query<null, mixed> in PHPDoc tag `@param` for parameter $query does not specify all template types of class Doctrine\ORM\Query: TKey, TResult, THydrationMode
PHPStan (8.2): src/Type/Doctrine/Query/QueryResultTypeWalker.php#L102
Generic type Doctrine\ORM\Query<null, mixed> in PHPDoc tag `@var` for property PHPStan\Type\Doctrine\Query\QueryResultTypeWalker::$query does not specify all template types of class Doctrine\ORM\Query: TKey, TResult, THydrationMode
PHPStan (8.2): src/Type/Doctrine/Query/QueryResultDynamicReturnTypeExtension.php#L30
Property PHPStan\Type\Doctrine\Query\QueryResultDynamicReturnTypeExtension::$objectMetadataResolver is never read, only written.
Tests (8.3, lowest)
Process completed with exit code 2.
Tests (8.0, lowest)
Process completed with exit code 2.
Tests (8.2, lowest)
Process completed with exit code 2.
Tests (8.4, highest)
Process completed with exit code 2.
Tests (8.1, highest)
Process completed with exit code 2.
Tests (8.0, highest)
Process completed with exit code 2.
Tests (8.1, lowest)
Process completed with exit code 2.
Tests (8.2, highest)
Process completed with exit code 2.
Tests (8.3, highest)
Process completed with exit code 2.
Tests (8.4, lowest)
Process completed with exit code 2.
Tests (7.4, highest)
Process completed with exit code 2.
Tests (7.4, lowest)
Process completed with exit code 2.