Skip to content

Commit ed32c28

Browse files
committed
drop 1.8 support
1 parent 0d1cc31 commit ed32c28

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

.github/workflows/phpstan-dev.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ jobs:
1414
matrix:
1515
phpstan:
1616
- '1.9.x-dev'
17-
- '1.8.x-dev'
1817
steps:
1918
- name: "Checkout"
2019
uses: "actions/checkout@v2"

composer.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"require": {
1313
"php": "^7.4 || ^8.0",
1414
"symfony/finder": "~3.4.5 ||^4.2 || ^5.0 || ^6.0",
15-
"phpstan/phpstan": "^1.8.0",
15+
"phpstan/phpstan": "^1.9.0",
1616
"symfony/yaml": "~3.4.5 || ^4.2|| ^5.0 || ^6.0",
1717
"webflo/drupal-finder": "^1.2"
1818
},
@@ -29,9 +29,6 @@
2929
"squizlabs/php_codesniffer": "^3.3",
3030
"symfony/phpunit-bridge": "^3.4.3 || ^4.4 || ^5.4 || ^6.0"
3131
},
32-
"conflict": {
33-
"phpstan/phpstan": "^2.0"
34-
},
3532
"minimum-stability": "dev",
3633
"prefer-stable": true,
3734
"suggest": {

src/Rules/Drupal/RenderCallbackRule.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,7 @@ private function getType(Node\Expr $node, Scope $scope): Type
221221
}
222222
}
223223
} elseif ($type instanceof ConstantStringType) {
224-
// @phpstan-ignore-next-line
225-
if ($type->isClassString()) {
224+
if ($type->isClassStringType()->yes()) {
226225
return $type;
227226
}
228227
// Covers \Drupal\Core\Controller\ControllerResolver::createController.

0 commit comments

Comments
 (0)