diff --git a/composer.json b/composer.json index 8db675f90ec..51094308404 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.14", + "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.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 c5714d48234..a1e263e5fef 100644 --- a/psalm-baseline.xml +++ b/psalm-baseline.xml @@ -1,5 +1,5 @@ - + IterableResult @@ -569,15 +569,20 @@ protected function _validateAndCompleteManyToManyMapping(array $mapping) protected function _validateAndCompleteOneToOneMapping(array $mapping) - + ReflectionProperty ReflectionProperty - getReflectionClass $definition $this->subClasses + + $this->reflClass + + + getReflectionClass + $cache $className @@ -772,8 +777,8 @@ assert($property instanceof ReflectionProperty) - assert($cacheAttribute instanceof Mapping\Cache) $metadata->getReflectionClass() + assert($cacheAttribute instanceof Mapping\Cache) @@ -2568,7 +2573,8 @@ - + + $this->repositoryList[$repositoryHash] $this->repositoryList[$repositoryHash] = $this->createRepository($entityManager, $entityName) @@ -2782,12 +2788,6 @@ public function setFieldVisibility($visibility) - - $visibility - - - setFieldVisibility - $last strrpos($metadata->name, '\\') @@ -3137,8 +3137,7 @@ setValue setValue - - addPropertyChangedListener + unwrap unwrap unwrap