Skip to content

Commit 6e68248

Browse files
committedSep 15, 2024
[BCB] Constructor parameter $templateTypes in MethodTagValueNode made required
1 parent 7cfc530 commit 6e68248

File tree

3 files changed

+55
-1
lines changed

3 files changed

+55
-1
lines changed
 

‎UPGRADING.md

+1
Original file line numberDiff line numberDiff line change
@@ -117,3 +117,4 @@ The line with `some text in the middle` in phpdoc-parser 2.0 is now part of the
117117
### Minor BC breaks
118118

119119
* Constructor parameter `$isEquality` in `AssertTag*ValueNode` made required
120+
* Constructor parameter `$templateTypes` in `MethodTagValueNode` made required

‎src/Ast/PhpDoc/MethodTagValueNode.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class MethodTagValueNode implements PhpDocTagValueNode
3131
* @param MethodTagValueParameterNode[] $parameters
3232
* @param TemplateTagValueNode[] $templateTypes
3333
*/
34-
public function __construct(bool $isStatic, ?TypeNode $returnType, string $methodName, array $parameters, string $description, array $templateTypes = [])
34+
public function __construct(bool $isStatic, ?TypeNode $returnType, string $methodName, array $parameters, string $description, array $templateTypes)
3535
{
3636
$this->isStatic = $isStatic;
3737
$this->returnType = $returnType;

0 commit comments

Comments
 (0)
Failed to load comments.