Skip to content

Commit 3385bd3

Browse files
authored
Merge pull request #15 from yamadashy/feature/phpstan-v2
Update to PHPStan 2.0
2 parents aa1358d + d042412 commit 3385bd3

File tree

5 files changed

+10
-14
lines changed

5 files changed

+10
-14
lines changed

.github/workflows/tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
strategy:
1515
matrix:
16-
php-version: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3']
16+
php-version: ['7.4', '8.0', '8.1', '8.2', '8.3']
1717
steps:
1818
- uses: actions/checkout@v4
1919
- name: Setup PHP
@@ -31,7 +31,7 @@ jobs:
3131
- name: Setup PHP
3232
uses: shivammathur/setup-php@v2
3333
with:
34-
php-version: '8.2'
34+
php-version: '8.3'
3535
- name: Install dependencies
3636
run: composer update --no-interaction --no-progress --ansi
3737
- name: Run coding standards check
@@ -45,7 +45,7 @@ jobs:
4545
- name: Setup PHP
4646
uses: shivammathur/setup-php@v2
4747
with:
48-
php-version: '8.2'
48+
php-version: '8.3'
4949
- name: Install dependencies
5050
run: composer update --no-interaction --no-progress --ansi
5151
- name: Run static analysis
@@ -67,7 +67,7 @@ jobs:
6767
runs-on: ubuntu-latest
6868
strategy:
6969
matrix:
70-
php-version: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3']
70+
php-version: ['7.4', '8.0', '8.1', '8.2', '8.3']
7171
dependency-version: [prefer-lowest, prefer-stable]
7272
steps:
7373
- uses: actions/checkout@v4

.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: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,13 @@
1111
}
1212
],
1313
"require": {
14-
"php": "^7.2 || ^8.0",
14+
"php": "^7.4 || ^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)