Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
"php": ">=8.0"
},
"require-dev": {
"phpstan/phpstan": "^1.4",
"phpunit/phpunit": "^9.5.0",
"symfony/phpunit-bridge": "^6.3",
"symfony/var-dumper": "^5.4|^6.0"
"phpstan/phpstan": "^2.1.31",
"phpunit/phpunit": "^9.6.29",
"symfony/phpunit-bridge": "^6.4|^7.0",
"symfony/var-dumper": "^5.4|^6.0|^7.0|^8.0"
},
"config": {
"preferred-install": "dist",
Expand Down
19 changes: 19 additions & 0 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
parameters:
ignoreErrors:
-
message: '#^@readonly property Zenstruck\\Bytes\:\:\$system is assigned outside of the constructor\.$#'
identifier: property.readOnlyByPhpDocAssignNotInConstructor
count: 2
path: src/Bytes.php

-
message: '#^@readonly property Zenstruck\\Bytes\:\:\$units is assigned outside of the constructor\.$#'
identifier: property.readOnlyByPhpDocAssignNotInConstructor
count: 2
path: src/Bytes.php

-
message: '#^@readonly property cannot have a default value\.$#'
identifier: property.readOnlyByPhpDocDefaultValue
count: 2
path: src/Bytes.php
3 changes: 3 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
includes:
- phpstan-baseline.neon

parameters:
level: 8
treatPhpDocTypesAsCertain: false
Expand Down
Loading