Skip to content

Commit

Permalink
DEP Bump minimum version of phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Dec 18, 2024
1 parent f91a320 commit f9788b3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
10 changes: 8 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"license": "BSD-3-Clause",
"require": {
"php": "^8.1",
"phpstan/phpstan": "^1.11"
"phpstan/phpstan": "^1.12.13"
},
"require-dev": {
"phpunit/phpunit": "^9.6",
Expand All @@ -28,5 +28,11 @@
}
},
"minimum-stability": "dev",
"prefer-stable": true
"prefer-stable": true,
"config": {
"allow-plugins": {
"composer/installers": true,
"silverstripe/vendor-plugin": true
}
}
}
6 changes: 3 additions & 3 deletions tests/PHPStan/KeywordSelfRuleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,17 @@ public function provideRule()
'interface' => [
'filePaths' => [__DIR__ . '/KeywordSelfRuleTest/TestInterface.php'],
'errorMessage' => "Can't use keyword 'self'. Use 'TestInterface' instead.",
'errorLines' => [13, 18, 18],
'errorLines' => [13, 13, 18, 18],
],
'class' => [
'filePaths' => [__DIR__ . '/KeywordSelfRuleTest/TestClass.php'],
'errorMessage' => "Can't use keyword 'self'. Use 'TestClass' instead.",
'errorLines' => [9, 11, 16, 16, 18, 20, 21, 21, 25],
'errorLines' => [9, 9, 11, 16, 16, 18, 20, 21, 21, 21, 25],
],
'enum' => [
'filePaths' => [__DIR__ . '/KeywordSelfRuleTest/TestEnum.php'],
'errorMessage' => "Can't use keyword 'self'. Use 'TestEnum' instead.",
'errorLines' => [9, 14, 14, 16, 17, 18, 20, 24],
'errorLines' => [9, 9, 14, 14, 16, 16, 17, 17, 18, 20, 24],
],
'trait' => [
'filePaths' => [
Expand Down

0 comments on commit f9788b3

Please sign in to comment.