From b9f2488c6c08c89c329e0643f146e974c099e075 Mon Sep 17 00:00:00 2001 From: "Alexander M. Turek" Date: Sun, 19 Jun 2022 14:48:36 +0200 Subject: [PATCH 1/2] PHP CodeSniffer 3.7.1, PHPStan 1.7.14 (#9858) --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index a2f25312231..8db675f90ec 100644 --- a/composer.json +++ b/composer.json @@ -42,10 +42,10 @@ "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.14", "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" From 278bf194cadaa4c6719ea1c415cea7fe56c913c0 Mon Sep 17 00:00:00 2001 From: "Alexander M. Turek" Date: Tue, 28 Jun 2022 10:41:20 +0200 Subject: [PATCH 2/2] Psalm 4.24.0, PHPStan 1.7.15 (#9865) --- composer.json | 4 ++-- psalm-baseline.xml | 25 ++++++++++++------------- 2 files changed, 14 insertions(+), 15 deletions(-) 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