diff --git a/.github/workflows/coding-standard.yml b/.github/workflows/coding-standard.yml index d0f9251732c..20e55b12fcc 100644 --- a/.github/workflows/coding-standard.yml +++ b/.github/workflows/coding-standard.yml @@ -12,4 +12,4 @@ jobs: coding-standards: uses: "doctrine/.github/.github/workflows/coding-standards.yml@1.4.1" with: - php-version: "8.0" + php-version: "8.1" diff --git a/.github/workflows/static-analysis.yml b/.github/workflows/static-analysis.yml index 5d3f988c43c..cecb27d0026 100644 --- a/.github/workflows/static-analysis.yml +++ b/.github/workflows/static-analysis.yml @@ -18,7 +18,7 @@ jobs: fail-fast: false matrix: php-version: - - "8.0" + - "8.1" dbal-version: - "default" @@ -53,7 +53,7 @@ jobs: fail-fast: false matrix: php-version: - - "8.0" + - "8.1" dbal-version: - "default" diff --git a/composer.json b/composer.json index 43f7a70467e..2b27555ac1b 100644 --- a/composer.json +++ b/composer.json @@ -45,7 +45,7 @@ "phpunit/phpunit": "^9.5", "squizlabs/php_codesniffer": "3.6.2", "symfony/cache": "^4.4 || ^5.4 || ^6.0", - "vimeo/psalm": "4.16.1" + "vimeo/psalm": "4.17.0" }, "conflict": { "doctrine/annotations": "<1.13 || >= 2.0" diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 1a1d9b15177..ebc7e914e51 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -585,6 +585,11 @@ parameters: count: 1 path: lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php + - + message: "#^Parameter \\#2 \\$lockMode of method Doctrine\\\\DBAL\\\\Platforms\\\\AbstractPlatform\\:\\:appendLockHint\\(\\) expects 0\\|1\\|2\\|4, int given\\.$#" + count: 2 + path: lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php + - message: "#^Parameter \\#3 \\$hints of method Doctrine\\\\ORM\\\\Internal\\\\Hydration\\\\AbstractHydrator\\:\\:hydrateAll\\(\\) expects array\\, array\\ given\\.$#" count: 1 @@ -620,6 +625,11 @@ parameters: count: 1 path: lib/Doctrine/ORM/Persisters/Entity/JoinedSubclassPersister.php + - + message: "#^Parameter \\#2 \\$lockMode of method Doctrine\\\\DBAL\\\\Platforms\\\\AbstractPlatform\\:\\:appendLockHint\\(\\) expects 0\\|1\\|2\\|4, int given\\.$#" + count: 1 + path: lib/Doctrine/ORM/Persisters/Entity/JoinedSubclassPersister.php + - message: "#^Access to an undefined property Doctrine\\\\Persistence\\\\Mapping\\\\ClassMetadata\\:\\:\\$isEmbeddedClass\\.$#" count: 1 @@ -821,18 +831,17 @@ parameters: path: lib/Doctrine/ORM/Query/Parser.php - - message: - """ - #^PHPDoc tag @return has invalid value \\(AST\\\\BetweenExpression\\| - AST\\\\CollectionMemberExpression\\| - AST\\\\ComparisonExpression\\| - AST\\\\EmptyCollectionComparisonExpression\\| - AST\\\\ExistsExpression\\| - AST\\\\InExpression\\| - AST\\\\InstanceOfExpression\\| - AST\\\\LikeExpression\\| - AST\\\\NullComparisonExpression\\)\\: Unexpected token "\\\\n \\* ", expected type at offset 344$# - """ + message: """ + #^PHPDoc tag @return has invalid value \\(AST\\\\BetweenExpression\\| + AST\\\\CollectionMemberExpression\\| + AST\\\\ComparisonExpression\\| + AST\\\\EmptyCollectionComparisonExpression\\| + AST\\\\ExistsExpression\\| + AST\\\\InExpression\\| + AST\\\\InstanceOfExpression\\| + AST\\\\LikeExpression\\| + AST\\\\NullComparisonExpression\\)\\: Unexpected token "\\\\n \\* ", expected type at offset 344$# + """ count: 1 path: lib/Doctrine/ORM/Query/Parser.php @@ -1565,3 +1574,4 @@ parameters: message: "#^Access to an undefined property Doctrine\\\\Persistence\\\\Mapping\\\\ClassMetadata\\:\\:\\$subClasses\\.$#" count: 1 path: lib/Doctrine/ORM/Utility/HierarchyDiscriminatorResolver.php + diff --git a/psalm-baseline.xml b/psalm-baseline.xml index 85c24c1edc1..b517a5736d3 100644 --- a/psalm-baseline.xml +++ b/psalm-baseline.xml @@ -1,5 +1,5 @@ - + getResultCacheDriver @@ -1429,7 +1429,9 @@ - + + $lockMode ?? LockMode::NONE + $lockMode ?? LockMode::NONE $this->em @@ -1512,7 +1514,8 @@ - + + $lockMode ?? LockMode::NONE $this->em