Skip to content

Fix getting table name when the table schema is an empty string #1455

Fix getting table name when the table schema is an empty string

Fix getting table name when the table schema is an empty string #1455

Triggered via pull request April 16, 2024 11:43
Status Failure
Total duration 2m 50s
Artifacts

qa.yaml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

11 errors and 3 warnings
PHPStan: src/AuditReader.php#L770
Parameter #1 $sql of method Doctrine\DBAL\Connection::executeQuery() expects literal-string, non-falsy-string given.
PHPStan: src/EventListener/LogRevisionsListener.php#L193
Parameter #1 $sql of method Doctrine\DBAL\Connection::executeQuery() expects literal-string, non-falsy-string given.
PHPStan: src/EventListener/LogRevisionsListener.php#L614
Parameter #1 $sql of method Doctrine\DBAL\Connection::executeStatement() expects literal-string, string given.
PHPStan: src/EventListener/LogRevisionsListener.php#L639
Parameter #1 $sql of method Doctrine\DBAL\Connection::executeStatement() expects literal-string, string given.
PHPStan
Process completed with exit code 1.
ArgumentTypeCoercion: tests/BaseTest.php#L166
tests/BaseTest.php:166:79: ArgumentTypeCoercion: Argument 1 of Doctrine\ORM\EntityManager::getClassMetadata expects TGeneratedFromParam0:fn-doctrine\orm\entitymanagerinterface::getclassmetadata as (class-string<T:fn-doctrine\orm\entitymanagerinterface::getclassmetadata as object>)|string, but parent type class-string provided (see https://psalm.dev/193)
ArgumentTypeCoercion: tests/BaseTest.php#L177
tests/BaseTest.php:177:79: ArgumentTypeCoercion: Argument 1 of Doctrine\ORM\EntityManager::getClassMetadata expects TGeneratedFromParam0:fn-doctrine\orm\entitymanagerinterface::getclassmetadata as (class-string<T:fn-doctrine\orm\entitymanagerinterface::getclassmetadata as object>)|string, but parent type class-string provided (see https://psalm.dev/193)
InvalidArgument: tests/CoreTest.php#L254
tests/CoreTest.php:254:35: InvalidArgument: Argument 1 of Doctrine\ORM\EntityManager::getClassMetadata expects TGeneratedFromParam0:fn-doctrine\orm\entitymanagerinterface::getclassmetadata as (class-string<T:fn-doctrine\orm\entitymanagerinterface::getclassmetadata as object>)|string, but Sonata\EntityAuditBundle\Tests\Fixtures\Core\UserAudit::class provided (see https://psalm.dev/004)
InvalidArgument: tests/CoreTest.php#L294
tests/CoreTest.php:294:35: InvalidArgument: Argument 1 of Doctrine\ORM\EntityManager::getClassMetadata expects TGeneratedFromParam0:fn-doctrine\orm\entitymanagerinterface::getclassmetadata as (class-string<T:fn-doctrine\orm\entitymanagerinterface::getclassmetadata as object>)|string, but Sonata\EntityAuditBundle\Tests\Fixtures\Core\ProfileAudit::class provided (see https://psalm.dev/004)
ArgumentTypeCoercion: tests/Issue/Issue318Test.php#L38
tests/Issue/Issue318Test.php:38:47: ArgumentTypeCoercion: Argument 1 of Doctrine\ORM\EntityManager::getClassMetadata expects TGeneratedFromParam0:fn-doctrine\orm\entitymanagerinterface::getclassmetadata as (class-string<T:fn-doctrine\orm\entitymanagerinterface::getclassmetadata as object>)|string, but parent type class-string<Sonata\EntityAuditBundle\Tests\Fixtures\Issue\Issue318User> provided (see https://psalm.dev/193)
Psalm
Process completed with exit code 2.
PHPStan
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/.
Rector
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/.
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/.