Make the class parameter mandatory for references #276
static-analysis.yml
on: pull_request
Matrix: Static Analysis / PHPStan
Matrix: Static Analysis / Psalm
Annotations
13 errors
Static Analysis / PHPStan (8.3):
src/ProxyReferenceRepository.php#L31
Call to an undefined method Doctrine\Common\DataFixtures\ProxyReferenceRepository::getReferences().
|
Static Analysis / PHPStan (8.3):
src/ProxyReferenceRepository.php#L39
Call to an undefined method Doctrine\Common\DataFixtures\ProxyReferenceRepository::getIdentities().
|
Static Analysis / PHPStan (8.3):
src/ProxyReferenceRepository.php#L72
Method Doctrine\Common\DataFixtures\ReferenceRepository::setReferenceIdentity() invoked with 2 parameters, 3 required.
|
Static Analysis / PHPStan (8.3):
src/ReferenceRepository.php#L1
Ignored error pattern #^Access to an undefined property Doctrine\\Persistence\\Mapping\\ClassMetadata\<object\>\:\:\$name\.$# in path /home/runner/work/data-fixtures/data-fixtures/src/ReferenceRepository.php was not matched in reported errors.
|
Static Analysis / PHPStan (8.3):
src/ReferenceRepository.php#L182
Access to an undefined property Doctrine\Persistence\Mapping\ClassMetadata<T of object>::$name.
|
Static Analysis / PHPStan (8.3):
src/ReferenceRepository.php#L225
PHPDoc tag @param for parameter $class with type class-string|null is not subtype of native type string.
|
Static Analysis / PHPStan (8.3):
tests/Common/DataFixtures/Executor/ORMExecutorSharedFixtureTest.php#L60
Call to an undefined method Doctrine\Common\DataFixtures\ReferenceRepository::getReferences().
|
Static Analysis / PHPStan (8.3):
tests/Common/DataFixtures/Executor/ORMExecutorSharedFixtureTest.php#L63
Method Doctrine\Common\DataFixtures\ReferenceRepository::getReference() invoked with 1 parameter, 2 required.
|
Static Analysis / PHPStan (8.3):
tests/Common/DataFixtures/Executor/ORMExecutorSharedFixtureTest.php#L67
Method Doctrine\Common\DataFixtures\ReferenceRepository::getReference() invoked with 1 parameter, 2 required.
|
Static Analysis / PHPStan (8.3):
tests/Common/DataFixtures/ProxyReferenceRepositoryTest.php#L47
Call to an undefined method Doctrine\Common\DataFixtures\ProxyReferenceRepository::getReferences().
|
TooFewArguments:
src/ProxyReferenceRepository.php#L72
src/ProxyReferenceRepository.php:72:24: TooFewArguments: Too few arguments for Doctrine\Common\DataFixtures\ProxyReferenceRepository::setReferenceIdentity - expecting class to be passed (see https://psalm.dev/025)
|
TooFewArguments:
src/ProxyReferenceRepository.php#L72
src/ProxyReferenceRepository.php:72:24: TooFewArguments: Too few arguments for method Doctrine\Common\DataFixtures\ReferenceRepository::setreferenceidentity saw 2 (see https://psalm.dev/025)
|
Static Analysis / Psalm (8.3)
Process completed with exit code 2.
|