Skip to content

Commit

Permalink
drop 1.8 support
Browse files Browse the repository at this point in the history
  • Loading branch information
mglaman committed Dec 22, 2022
1 parent 0d1cc31 commit ed32c28
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
1 change: 0 additions & 1 deletion .github/workflows/phpstan-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ jobs:
matrix:
phpstan:
- '1.9.x-dev'
- '1.8.x-dev'
steps:
- name: "Checkout"
uses: "actions/checkout@v2"
Expand Down
5 changes: 1 addition & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"require": {
"php": "^7.4 || ^8.0",
"symfony/finder": "~3.4.5 ||^4.2 || ^5.0 || ^6.0",
"phpstan/phpstan": "^1.8.0",
"phpstan/phpstan": "^1.9.0",
"symfony/yaml": "~3.4.5 || ^4.2|| ^5.0 || ^6.0",
"webflo/drupal-finder": "^1.2"
},
Expand All @@ -29,9 +29,6 @@
"squizlabs/php_codesniffer": "^3.3",
"symfony/phpunit-bridge": "^3.4.3 || ^4.4 || ^5.4 || ^6.0"
},
"conflict": {
"phpstan/phpstan": "^2.0"
},
"minimum-stability": "dev",
"prefer-stable": true,
"suggest": {
Expand Down
3 changes: 1 addition & 2 deletions src/Rules/Drupal/RenderCallbackRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,7 @@ private function getType(Node\Expr $node, Scope $scope): Type
}
}
} elseif ($type instanceof ConstantStringType) {
// @phpstan-ignore-next-line
if ($type->isClassString()) {
if ($type->isClassStringType()->yes()) {
return $type;
}
// Covers \Drupal\Core\Controller\ControllerResolver::createController.
Expand Down

0 comments on commit ed32c28

Please sign in to comment.