Skip to content

Commit f6415b7

Browse files
authored
Bump phpstan/phpstan to ^2.0 (#11)
* [Composer] Bump phpstan/phpstan to ^2.0 * [PHPStan] Regenerated PHPStan baseline * [CS] Fixed code style
1 parent 3b12e6e commit f6415b7

File tree

4 files changed

+17
-3
lines changed

4 files changed

+17
-3
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
"ibexa/code-style": "^1.1",
2525
"ibexa/core": "~4.6.x-dev",
2626
"ibexa/doctrine-schema": "~4.6.x-dev",
27-
"phpstan/phpstan": "^1.2",
28-
"phpstan/phpstan-phpunit": "^1.0",
27+
"phpstan/phpstan": "^2.0",
28+
"phpstan/phpstan-phpunit": "^2.0",
2929
"phpunit/phpunit": "^9"
3030
},
3131
"autoload": {

phpstan-baseline.neon

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
parameters:
2+
ignoreErrors:
3+
-
4+
message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertIsString\(\) with string will always evaluate to true\.$#'
5+
identifier: staticMethod.alreadyNarrowedType
6+
count: 1
7+
path: src/contracts/BaseRestWebTestCase.php
8+
9+
-
10+
message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertInstanceOf\(\) with ''Ibexa\\\\Contracts\\\\Test\\\\Rest\\\\Request\\\\Value\\\\EndpointRequestDefinition'' and Ibexa\\Contracts\\Test\\Rest\\Request\\Value\\EndpointRequestDefinition will always evaluate to true\.$#'
11+
identifier: staticMethod.alreadyNarrowedType
12+
count: 1
13+
path: tests/lib/BaseRestWebTestCaseTest.php

phpstan.neon

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
includes:
22
- vendor/phpstan/phpstan-phpunit/extension.neon
3+
- phpstan-baseline.neon
34

45
parameters:
56
level: 8

tests/lib/Request/Value/EndpointRequestDefinitionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
final class EndpointRequestDefinitionTest extends TestCase
1919
{
2020
/**
21-
* @return iterable<string, array{null|string, 'xml'|'json'}>
21+
* @return iterable<string, array{string|null, 'xml'|'json'}>
2222
*/
2323
public function getDataForTestExtractFormatFromAcceptHeader(): iterable
2424
{

0 commit comments

Comments
 (0)