Skip to content

Commit 19d598b

Browse files
committed
Support of phpstan/phpdoc-parser 1.16
1 parent 04e3279 commit 19d598b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

SlevomatCodingStandard/Helpers/AnnotationTypeHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ public static function change(TypeNode $masterTypeNode, TypeNode $typeNodeToChan
420420
$arrayShapeItemNodes[] = self::change($arrayShapeItemNode, $typeNodeToChange, $changedTypeNode);
421421
}
422422

423-
return new ArrayShapeNode($arrayShapeItemNodes, $masterTypeNode->sealed);
423+
return new ArrayShapeNode($arrayShapeItemNodes, $masterTypeNode->sealed, $masterTypeNode->kind);
424424
}
425425

426426
if ($masterTypeNode instanceof ArrayShapeItemNode) {

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"require": {
1919
"php": "^7.2 || ^8.0",
2020
"dealerdirect/phpcodesniffer-composer-installer": "^0.6.2 || ^0.7 || ^1.0",
21-
"phpstan/phpdoc-parser": ">=1.15.2 <1.16.0",
21+
"phpstan/phpdoc-parser": ">=1.16.0 <1.17.0",
2222
"squizlabs/php_codesniffer": "^3.7.1"
2323
},
2424
"require-dev": {

0 commit comments

Comments
 (0)