Skip to content

Commit 0174e9d

Browse files
committed
updated to phpstan 2 max rules
1 parent 95f9988 commit 0174e9d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+353
-304
lines changed

.github/workflows/qa.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
uses: shivammathur/setup-php@v2
1414
with:
1515
php-version: "8.3"
16-
tools: phpcs:3.10, php-cs-fixer:3.64, phpstan:1.12
16+
tools: phpcs:3.10, php-cs-fixer:3.64, phpstan:2.0.1
1717
coverage: none
1818
env:
1919
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -45,7 +45,7 @@ jobs:
4545
with:
4646
php-version: "8.3"
4747
extensions: mbstring, bcmath, xdebug
48-
tools: phpunit:11.3
48+
tools: phpunit:11.4
4949
coverage: xdebug
5050
env:
5151
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
* My AoC username: `tbali0524`
1010
* [Puzzle list](puzzles.md) with topics and my completion status
1111
* Some [memes](memes.md) from AoC subreddit
12-
* Link to this repo on [GitHub](https://github.com/tbali0524/advent-of-code-solutions)
13-
* Link to my _partial_ rewrite of this repo in `Rust` on [GitHub](https://github.com/tbali0524/advent-of-code-rust)
12+
* Link to [this repo on GitHub](https://github.com/tbali0524/advent-of-code-solutions)
13+
* Link to my partial [rewrite of the solution in `Rust` on GitHub](https://github.com/tbali0524/advent-of-code-rust)
1414

1515
## Installation
1616

phpstan.dist.neon

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# PHPStan configuration file.
22
#
3-
# minimum version: ^1.12
3+
# minimum version: ^2.0.1
44
#
55
# @see https://phpstan.org/config-reference
66
parameters:
7-
level: 9
7+
level: max
88
phpVersion: 80300
99
editorUrl: 'vscode://file/%%file%%:%%line%%'
1010
tmpDir: .tools/phpstan
@@ -14,10 +14,7 @@ parameters:
1414
excludePaths:
1515
- .git
1616
- .tools
17+
- .vscode (?)
1718
- vendor
18-
ignoreErrors:
19-
-
20-
message: '#^(Static )?[Mm]ethod TBali[a-zA-Z0-9\\_]+::[a-zA-Z0-9_]+\(\) is unused\.$#'
21-
identifier: method.unused
2219
includes:
2320
- phar://phpstan.phar/conf/bleedingEdge.neon

phpunit.xml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
<!--
33
PHPUnit configuration file.
44
5-
minimum version: ^11.3
5+
minimum version: ^11.4
66
7-
@see https://phpunit.readthedocs.io/en/11.3/configuration.html
7+
@see https://phpunit.readthedocs.io/en/11.4/configuration.html
88
-->
99
<phpunit
1010
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
11-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.3/phpunit.xsd"
11+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.4/phpunit.xsd"
1212
bootstrap="vendor/autoload.php"
1313
cacheDirectory=".tools/.phpunit.cache/"
1414
colors="true"
@@ -75,7 +75,6 @@ minimum version: ^11.3
7575
<coverage
7676
disableCodeCoverageIgnore="false"
7777
ignoreDeprecatedCodeUnits="true"
78-
includeUncoveredFiles="true"
7978
pathCoverage="false">
8079
<report>
8180
<html outputDirectory=".tools/phpunit-coverage" lowUpperBound="50" highLowerBound="90" />

0 commit comments

Comments
 (0)