Skip to content

Commit 3e1aefc

Browse files
authored
Bump phpstan/phpstan to ^2.0 (#25)
* [Composer] Bump phpstan/phpstan to ^2.0 * [PHPStan] Regenerated PHPStan baseline
1 parent f6686fe commit 3e1aefc

File tree

2 files changed

+129
-62
lines changed

2 files changed

+129
-62
lines changed

composer.json

Lines changed: 61 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,64 @@
11
{
2-
"name": "ibexa/core-persistence",
3-
"license": "(GPL-2.0-only or proprietary)",
4-
"type": "ibexa-bundle",
5-
"keywords": [
6-
"ibexa-dxp"
7-
],
8-
"require": {
9-
"php": "^7.4 || ^8.0",
10-
"ibexa/core": "~4.6.x-dev",
11-
"ibexa/doctrine-schema": "~4.6.x-dev",
12-
"symfony/config": "^5.4",
13-
"symfony/dependency-injection": "^5.4",
14-
"symfony/event-dispatcher": "^5.4",
15-
"symfony/http-foundation": "^5.4",
16-
"symfony/http-kernel": "^5.4",
17-
"symfony/yaml": "^5.4"
18-
},
19-
"require-dev": {
20-
"dama/doctrine-test-bundle": "^6.7",
21-
"ibexa/code-style": "^1.1",
22-
"ibexa/test-core": "0.1.x-dev",
23-
"phpstan/phpstan": "^1.4",
24-
"phpstan/phpstan-phpunit": "^1.0",
25-
"phpunit/phpunit": "^9.0",
26-
"symfony/phpunit-bridge": "^5.4"
27-
},
28-
"autoload": {
29-
"psr-4": {
30-
"Ibexa\\Bundle\\CorePersistence\\": "src/bundle/",
31-
"Ibexa\\Contracts\\CorePersistence\\": "src/contracts/",
32-
"Ibexa\\CorePersistence\\": "src/lib/"
2+
"name": "ibexa/core-persistence",
3+
"license": "(GPL-2.0-only or proprietary)",
4+
"type": "ibexa-bundle",
5+
"keywords": [
6+
"ibexa-dxp"
7+
],
8+
"require": {
9+
"php": "^7.4 || ^8.0",
10+
"ibexa/core": "~4.6.x-dev",
11+
"ibexa/doctrine-schema": "~4.6.x-dev",
12+
"symfony/config": "^5.4",
13+
"symfony/dependency-injection": "^5.4",
14+
"symfony/event-dispatcher": "^5.4",
15+
"symfony/http-foundation": "^5.4",
16+
"symfony/http-kernel": "^5.4",
17+
"symfony/yaml": "^5.4"
18+
},
19+
"require-dev": {
20+
"dama/doctrine-test-bundle": "^6.7",
21+
"ibexa/code-style": "^1.1",
22+
"ibexa/test-core": "0.1.x-dev",
23+
"phpstan/phpstan": "^2.0",
24+
"phpstan/phpstan-phpunit": "^2.0",
25+
"phpunit/phpunit": "^9.0",
26+
"symfony/phpunit-bridge": "^5.4"
27+
},
28+
"autoload": {
29+
"psr-4": {
30+
"Ibexa\\Bundle\\CorePersistence\\": "src/bundle/",
31+
"Ibexa\\Contracts\\CorePersistence\\": "src/contracts/",
32+
"Ibexa\\CorePersistence\\": "src/lib/"
33+
}
34+
},
35+
"autoload-dev": {
36+
"psr-4": {
37+
"Ibexa\\Tests\\Bundle\\CorePersistence\\": "tests/bundle/",
38+
"Ibexa\\Tests\\Integration\\CorePersistence\\": "tests/integration/",
39+
"Ibexa\\Tests\\CorePersistence\\": "tests/lib/"
40+
}
41+
},
42+
"scripts": {
43+
"fix-cs": "php-cs-fixer fix --config=.php-cs-fixer.php --show-progress=dots",
44+
"check-cs": "@fix-cs --dry-run",
45+
"test": "phpunit -c phpunit.xml.dist",
46+
"test-integration": "phpunit -c phpunit.integration.xml",
47+
"phpstan": "phpstan analyse -c phpstan.neon"
48+
},
49+
"scripts-descriptions": {
50+
"fix-cs": "Automatically fixes code style in all files",
51+
"check-cs": "Run code style checker for all files",
52+
"test": "Run automatic tests",
53+
"phpstan": "Run static code analysis"
54+
},
55+
"extra": {
56+
"branch-alias": {
57+
"dev-main": "4.6.x-dev"
58+
}
59+
},
60+
"config": {
61+
"allow-plugins": false,
62+
"sort-packages": true
3363
}
34-
},
35-
"autoload-dev": {
36-
"psr-4": {
37-
"Ibexa\\Tests\\Bundle\\CorePersistence\\": "tests/bundle/",
38-
"Ibexa\\Tests\\Integration\\CorePersistence\\": "tests/integration/",
39-
"Ibexa\\Tests\\CorePersistence\\": "tests/lib/"
40-
}
41-
},
42-
"scripts": {
43-
"fix-cs": "php-cs-fixer fix --config=.php-cs-fixer.php --show-progress=dots",
44-
"check-cs": "@fix-cs --dry-run",
45-
"test": "phpunit -c phpunit.xml.dist",
46-
"test-integration": "phpunit -c phpunit.integration.xml",
47-
"phpstan": "phpstan analyse -c phpstan.neon"
48-
},
49-
"scripts-descriptions": {
50-
"fix-cs": "Automatically fixes code style in all files",
51-
"check-cs": "Run code style checker for all files",
52-
"test": "Run automatic tests",
53-
"phpstan": "Run static code analysis"
54-
},
55-
"extra": {
56-
"branch-alias": {
57-
"dev-main": "4.6.x-dev"
58-
}
59-
},
60-
"config": {
61-
"allow-plugins": false,
62-
"sort-packages": true
63-
}
6464
}

phpstan-baseline.neon

Lines changed: 68 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,73 @@
11
parameters:
22
ignoreErrors:
33
-
4-
message: "#^Method Ibexa\\\\Contracts\\\\CorePersistence\\\\Gateway\\\\DoctrineOneToManyRelationship\\:\\:getForeignKeyColumn\\(\\) should return non\\-empty\\-string but returns ''\\.$#"
4+
message: '#^Method Ibexa\\Contracts\\CorePersistence\\Gateway\\AbstractDoctrineDatabase\:\:findBy\(\) should return array\<int, T of array\> but returns array\<int, array\<string, mixed\>\>\.$#'
5+
identifier: return.type
6+
count: 1
7+
path: src/contracts/Gateway/AbstractDoctrineDatabase.php
8+
9+
-
10+
message: '#^Method Ibexa\\Contracts\\CorePersistence\\Gateway\\DoctrineOneToManyRelationship\:\:getForeignKeyColumn\(\) should return non\-empty\-string but returns ''''\.$#'
11+
identifier: return.type
512
count: 1
613
path: src/contracts/Gateway/DoctrineOneToManyRelationship.php
14+
15+
-
16+
message: '#^PHPDoc tag @var with type Exception is not subtype of native type PHPUnit\\Framework\\MockObject\\MockObject\.$#'
17+
identifier: varTag.nativeType
18+
count: 1
19+
path: tests/bundle/Gateway/ExpressionVisitorTest.php
20+
21+
-
22+
message: '#^PHPDoc tag @var with type class\-string is not subtype of native type ''relationship_1_class''\.$#'
23+
identifier: varTag.nativeType
24+
count: 1
25+
path: tests/bundle/Gateway/ExpressionVisitorTest.php
26+
27+
-
28+
message: '#^PHPDoc tag @var with type class\-string is not subtype of native type ''relationship_2_class''\.$#'
29+
identifier: varTag.nativeType
30+
count: 1
31+
path: tests/bundle/Gateway/ExpressionVisitorTest.php
32+
33+
-
34+
message: '#^PHPDoc tag @var with type class\-string is not subtype of native type ''relationship_class''\.$#'
35+
identifier: varTag.nativeType
36+
count: 3
37+
path: tests/bundle/Gateway/ExpressionVisitorTest.php
38+
39+
-
40+
message: '#^PHPDoc tag @var with type class\-string is not subtype of native type ''FooClass''\.$#'
41+
identifier: varTag.nativeType
42+
count: 1
43+
path: tests/integration/Fixtures/FooGateway.php
44+
45+
-
46+
message: '#^PHPDoc tag @var with type class\-string is not subtype of native type ''Relationship1Class''\.$#'
47+
identifier: varTag.nativeType
48+
count: 1
49+
path: tests/integration/Fixtures/FooGateway.php
50+
51+
-
52+
message: '#^PHPDoc tag @var with type class\-string is not subtype of native type ''Relationship3Class''\.$#'
53+
identifier: varTag.nativeType
54+
count: 1
55+
path: tests/integration/Fixtures/FooGateway.php
56+
57+
-
58+
message: '#^PHPDoc tag @var with type class\-string is not subtype of native type ''Relationship1Class''\.$#'
59+
identifier: varTag.nativeType
60+
count: 1
61+
path: tests/integration/Fixtures/Relationship1Gateway.php
62+
63+
-
64+
message: '#^PHPDoc tag @var with type class\-string is not subtype of native type ''Relationship2Class''\.$#'
65+
identifier: varTag.nativeType
66+
count: 1
67+
path: tests/integration/Fixtures/Relationship1Gateway.php
68+
69+
-
70+
message: '#^PHPDoc tag @var with type class\-string is not subtype of native type ''Relationship2Class''\.$#'
71+
identifier: varTag.nativeType
72+
count: 1
73+
path: tests/integration/Fixtures/Relationship2Gateway.php

0 commit comments

Comments
 (0)