Skip to content

Commit 0578f22

Browse files
committed
feat(phpstan): Update to PHPStan 2.0
1 parent aa1358d commit 0578f22

File tree

4 files changed

+5
-9
lines changed

4 files changed

+5
-9
lines changed

.tool-versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
php 8.3.11
1+
php 8.3.13

composer.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,11 @@
1313
"require": {
1414
"php": "^7.2 || ^8.0",
1515
"php-parallel-lint/php-console-highlighter": "^0.3 || ^0.4 || ^0.5 || ^1.0",
16-
"phpstan/phpstan": "^0.12 || ^1.0"
16+
"phpstan/phpstan": "^0.12 || ^1.0 || ^2.0"
1717
},
1818
"require-dev": {
1919
"friendsofphp/php-cs-fixer": "^3.4.0",
20-
"grifart/phpstan-oneline": "^0.4.2",
21-
"phpstan/phpstan-phpunit": "^0.12.22 || ^1.0",
20+
"phpstan/phpstan-phpunit": "^2.0",
2221
"phpunit/phpunit": "^8.5.26 || ^10.0.0"
2322
},
2423
"minimum-stability": "dev",
@@ -52,7 +51,6 @@
5251
"analyze": "phpstan analyze -c phpstan.neon.dist --error-format friendly",
5352
"analyze-raw": "phpstan analyze -c phpstan.neon.dist --error-format raw",
5453
"analyze-table": "phpstan analyze -c phpstan.neon.dist --error-format table",
55-
"analyze-oneline": "phpstan analyze -c phpstan.neon.dist --error-format oneline",
5654
"cs-fix": "php-cs-fixer fix",
5755
"cs-fix-dry": "php-cs-fixer fix --dry-run"
5856
}

phpstan.neon.dist

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
11
includes:
22
- extension.neon
3-
- vendor/grifart/phpstan-oneline/config.neon
43
- vendor/phpstan/phpstan-phpunit/extension.neon
54
- vendor/phpstan/phpstan-phpunit/rules.neon
65

76
parameters:
8-
level: 9
7+
level: 10
98
paths:
109
- src
1110
- tests
1211

1312
excludePaths:
1413
- tests/data/
15-
- tests/Abstracts/
1614

1715
checkUninitializedProperties: true
1816
checkMissingCallableSignature: true

tests/CodeHighlight/CodeHighlighterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
/**
1010
* @internal
1111
*
12-
* @coversDefaultClass \Yamadashy\PhpStanFriendlyFormatter\CodeHighlighter
12+
* @coversDefaultClass \Yamadashy\PhpStanFriendlyFormatter\CodeHighlight\CodeHighlighter
1313
*/
1414
final class CodeHighlighterTest extends TestCase
1515
{

0 commit comments

Comments
 (0)