mirror of
https://github.com/barryvdh/ReflectionDocBlock.git
synced 2026-08-18 01:57:13 +00:00
@@ -2,5 +2,6 @@ parameters:
|
|||||||
level: max
|
level: max
|
||||||
ignoreErrors:
|
ignoreErrors:
|
||||||
- '#Method phpDocumentor\\Reflection\\DocBlock\\StandardTagFactory::createTag\(\) should return phpDocumentor\\Reflection\\DocBlock\\Tag but returns mixed#'
|
- '#Method phpDocumentor\\Reflection\\DocBlock\\StandardTagFactory::createTag\(\) should return phpDocumentor\\Reflection\\DocBlock\\Tag but returns mixed#'
|
||||||
|
- '#Offset 2 on array\{string, 28, int\} on left side of \?\? always exists and is not nullable\.#'
|
||||||
paths:
|
paths:
|
||||||
- src
|
- src
|
||||||
|
|||||||
@@ -104,12 +104,12 @@ class AbstractPHPStanFactory implements Factory
|
|||||||
$fixed[] = [
|
$fixed[] = [
|
||||||
rtrim($token[Lexer::VALUE_OFFSET], " \t"),
|
rtrim($token[Lexer::VALUE_OFFSET], " \t"),
|
||||||
Lexer::TOKEN_PHPDOC_EOL,
|
Lexer::TOKEN_PHPDOC_EOL,
|
||||||
$token[2],
|
$token[2] ?? 0,
|
||||||
];
|
];
|
||||||
$fixed[] = [
|
$fixed[] = [
|
||||||
ltrim($token[Lexer::VALUE_OFFSET], "\n\r"),
|
ltrim($token[Lexer::VALUE_OFFSET], "\n\r"),
|
||||||
Lexer::TOKEN_HORIZONTAL_WS,
|
Lexer::TOKEN_HORIZONTAL_WS,
|
||||||
$token[2] + 1,
|
($token[2] ?? 0) + 1,
|
||||||
];
|
];
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user