Skip to content

Commit d0ede61

Browse files
authored
[Commenting] Skip Nested multiline array<> on ParamReturnAndVarTagMalformsFixer (#73)
1 parent 81f573a commit d0ede61

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

src/TokenRunner/DocBlock/MalformWorker/MissingParamNameMalformWorker.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
{
1717
/**
1818
* @var string
19-
* @see https://regex101.com/r/QtWnWv/5
19+
* @see https://regex101.com/r/QtWnWv/6
2020
*/
21-
private const PARAM_WITHOUT_NAME_REGEX = '#@param ([^${]*?)( ([^$]*?))?\n#';
21+
private const PARAM_WITHOUT_NAME_REGEX = '#@param ([^${<]*?)( ([^$]*?))?\n#';
2222

2323
/**
2424
* @var string
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
/**
4+
* @param array<string, array{
5+
* foo: string
6+
* }> $foo
7+
*/
8+
function test($foo, $bar): void
9+
{
10+
11+
}

0 commit comments

Comments
 (0)