Skip to content

DevKit updates for 5.x branch #3371

DevKit updates for 5.x branch

DevKit updates for 5.x branch #3371

Triggered via pull request July 14, 2024 21:47
Status Failure
Total duration 8m 6s
Artifacts

qa.yaml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

19 errors
PHPStan: src/Datagrid/ProxyQuery.php#L1
Ignored error pattern #Parameter \#1 \$className of method Doctrine\\Persistence\\Mapping\\AbstractClassMetadataFactory<Doctrine\\ORM\\Mapping\\ClassMetadata>::getMetadataFor\(\) expects class-string, string given.# in path /home/runner/work/SonataDoctrineORMAdminBundle/SonataDoctrineORMAdminBundle/src/Datagrid/ProxyQuery.php was not matched in reported errors.
PHPStan: src/Datagrid/ProxyQuery.php#L248
Method Sonata\DoctrineORMAdminBundle\Datagrid\ProxyQuery::getFirstResult() never returns null so it can be removed from the return type.
PHPStan: src/FieldDescription/FieldDescriptionFactory.php#L118
No error to ignore is reported on line 118.
PHPStan: src/FieldDescription/FieldDescriptionFactory.php#L120
No error to ignore is reported on line 120.
PHPStan: tests/Filter/FilterTest.php#L36
Parameter #1 $from of method Doctrine\ORM\QueryBuilder::from() expects class-string, string given.
PHPStan: tests/Fixtures/Query/FooWalker.php#L20
Method Sonata\DoctrineORMAdminBundle\Tests\Fixtures\Query\FooWalker::walkOrderByClause() has parameter $orderByClause with no type specified.
PHPStan: tests/Fixtures/TestEntityManagerFactory.php#L37
Call to an undefined static method Doctrine\ORM\ORMSetup::createAnnotationMetadataConfiguration().
PHPStan
Process completed with exit code 1.
Rector
Process completed with exit code 2.
UnusedPsalmSuppress: src/FieldDescription/FieldDescriptionFactory.php#L105
src/FieldDescription/FieldDescriptionFactory.php:105:24: UnusedPsalmSuppress: This suppression is never used (see https://psalm.dev/207)
UnusedPsalmSuppress: src/FieldDescription/FieldDescriptionFactory.php#L115
src/FieldDescription/FieldDescriptionFactory.php:115:28: UnusedPsalmSuppress: This suppression is never used (see https://psalm.dev/207)
ArgumentTypeCoercion: tests/Filter/FilterTest.php#L36
tests/Filter/FilterTest.php:36:42: ArgumentTypeCoercion: Argument 1 of Sonata\DoctrineORMAdminBundle\Tests\Filter\TestQueryBuilder::from expects class-string, but parent type 'MyEntity' provided (see https://psalm.dev/193)
UndefinedClass: tests/Filter/FilterTest.php#L36
tests/Filter/FilterTest.php:36:42: UndefinedClass: Class, interface or enum named MyEntity does not exist (see https://psalm.dev/019)
MissingParamType: tests/Fixtures/Query/FooWalker.php#L20
tests/Fixtures/Query/FooWalker.php:20:39: MissingParamType: Parameter $orderByClause has no provided type (see https://psalm.dev/154)
UnusedPsalmSuppress: tests/Fixtures/TestEntityManagerFactory.php#L26
tests/Fixtures/TestEntityManagerFactory.php:26:24: UnusedPsalmSuppress: This suppression is never used (see https://psalm.dev/207)
UndefinedMethod: tests/Fixtures/TestEntityManagerFactory.php#L37
tests/Fixtures/TestEntityManagerFactory.php:37:23: UndefinedMethod: Method Doctrine\ORM\ORMSetup::createannotationmetadataconfiguration does not exist (see https://psalm.dev/022)
ArgumentTypeCoercion: tests/Fixtures/TestEntityManagerFactory.php#L50
tests/Fixtures/TestEntityManagerFactory.php:50:13: ArgumentTypeCoercion: Argument 2 of Doctrine\ORM\EntityManager::__construct expects Doctrine\ORM\Configuration, but parent type Doctrine\DBAL\Configuration|null provided (see https://psalm.dev/193)
UnusedBaselineEntry: src/Datagrid/ProxyQuery.php#L1
src/Datagrid/ProxyQuery.php:0:0: UnusedBaselineEntry: Baseline for issue "MoreSpecificReturnType" has 1 extra entry. (see https://psalm.dev/316)
UnusedBaselineEntry: src/Datagrid/ProxyQuery.php#L1
src/Datagrid/ProxyQuery.php:0:0: UnusedBaselineEntry: Baseline for issue "LessSpecificReturnStatement" has 1 extra entry. (see https://psalm.dev/316)