diff --git a/composer.json b/composer.json index df509d3a932..91382496032 100644 --- a/composer.json +++ b/composer.json @@ -42,13 +42,13 @@ "doctrine/annotations": "^1.13", "doctrine/coding-standard": "^9.0", "phpbench/phpbench": "^0.16.10 || ^1.0", - "phpstan/phpstan": "~1.4.10 || 1.7.13", + "phpstan/phpstan": "~1.4.10 || 1.7.15", "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", "psr/log": "^1 || ^2 || ^3", - "squizlabs/php_codesniffer": "3.7.0", + "squizlabs/php_codesniffer": "3.7.1", "symfony/cache": "^4.4 || ^5.4 || ^6.0", "symfony/yaml": "^3.4 || ^4.0 || ^5.0 || ^6.0", - "vimeo/psalm": "4.23.0" + "vimeo/psalm": "4.24.0" }, "conflict": { "doctrine/annotations": "<1.13 || >= 2.0" diff --git a/psalm-baseline.xml b/psalm-baseline.xml index f34047f4b17..f0e56991cc8 100644 --- a/psalm-baseline.xml +++ b/psalm-baseline.xml @@ -1,5 +1,5 @@ - + IterableResult @@ -609,16 +609,21 @@ protected function _validateAndCompleteManyToManyMapping(array $mapping) protected function _validateAndCompleteOneToOneMapping(array $mapping) - + ReflectionProperty ReflectionProperty getAssociationMappedByTargetField - getReflectionClass $definition $this->subClasses + + $this->reflClass + + + getReflectionClass + $cache $className @@ -816,8 +821,8 @@ assert($property instanceof ReflectionProperty) - assert($cacheAttribute instanceof Mapping\Cache) $metadata->getReflectionClass() + assert($cacheAttribute instanceof Mapping\Cache) @@ -2574,7 +2579,8 @@ - + + $this->repositoryList[$repositoryHash] $this->repositoryList[$repositoryHash] = $this->createRepository($entityManager, $entityName) @@ -2791,12 +2797,6 @@ public function setFieldVisibility($visibility) - - $visibility - - - setFieldVisibility - $last strrpos($metadata->name, '\\') @@ -3217,8 +3217,7 @@ $assoc['orphanRemoval'] $association['mappedBy'] - - addPropertyChangedListener + unwrap unwrap unwrap