Skip to content

Commit c034171

Browse files
committed
Upgrade phpstan
Signed-off-by: William Desportes <[email protected]>
1 parent 5cb0901 commit c034171

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"require-dev": {
2727
"phpmyadmin/coding-standard": "^3.0.0",
2828
"phpmyadmin/motranslator": "^5.2",
29-
"phpstan/phpstan": "^0.12.66",
29+
"phpstan/phpstan": "^1.9.4",
3030
"phpunit/phpunit": "^7 || ^8 || ^9"
3131
},
3232
"scripts": {

src/Node/TransNode.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
use Twig\Node\Expression\TempNameExpression;
2424
use Twig\Node\Node;
2525
use Twig\Node\PrintNode;
26+
use Twig\Node\TextNode;
2627

2728
use function array_merge;
2829
use function count;
@@ -249,6 +250,7 @@ protected function compileString(Node $body): array
249250
$msg .= sprintf('%%%s%%', $attributeName);
250251
$vars[] = new NameExpression($attributeName, $n->getTemplateLine());
251252
} else {
253+
/** @phpstan-var TextNode $node */
252254
$msg .= $node->getAttribute('data');
253255
}
254256
}

0 commit comments

Comments
 (0)