File tree Expand file tree Collapse file tree 5 files changed +75
-65
lines changed
packages/guides-restructured-text
src/RestructuredText/Parser Expand file tree Collapse file tree 5 files changed +75
-65
lines changed Original file line number Diff line number Diff line change 26
26
"php" : " ^8.1" ,
27
27
"ext-json" : " *" ,
28
28
"ext-mbstring" : " *" ,
29
- "doctrine/lexer" : " ^2.1 " ,
29
+ "doctrine/lexer" : " ^3.0 " ,
30
30
"league/commonmark" : " ^2.4" ,
31
31
"league/flysystem" : " ^1.0" ,
32
32
"league/tactician" : " ^1.1" ,
Original file line number Diff line number Diff line change 22
22
"minimum-stability" : " stable" ,
23
23
"require" : {
24
24
"php" : " ^8.1" ,
25
- "doctrine/lexer" : " ^2.1 " ,
25
+ "doctrine/lexer" : " ^3.0 " ,
26
26
"phpdocumentor/guides" : " dev-main@dev" ,
27
27
"webmozart/assert" : " ^1.11"
28
28
}
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ protected function getNonCatchablePatterns(): array
104
104
}
105
105
106
106
/** @inheritDoc */
107
- protected function getType (&$ value )
107
+ protected function getType (string &$ value )
108
108
{
109
109
if (preg_match ('/^ \\\\[\s\S]/i ' , $ value )) {
110
110
return self ::ESCAPED_SIGN ;
Original file line number Diff line number Diff line change @@ -13,6 +13,17 @@ parameters:
13
13
message : ' #Unreachable statement - code above always terminates\.#'
14
14
path : packages/guides-restructured-text/tests/unit/Parser/Productions/GridTableRuleTest.php
15
15
16
+ # https://github.com/doctrine/lexer/pull/109
17
+ -
18
+ message : ' #^Result of && is always false.|Strict comparison using \=\=\= between Doctrine\\Common\\Lexer\\Token and null will always evaluate to false\.$#'
19
+ paths :
20
+ - packages/guides-restructured-text/src/RestructuredText/Parser/Productions/InlineRules/AnnotationRoleRule.php
21
+ - packages/guides-restructured-text/src/RestructuredText/Parser/Productions/InlineRules/DefaultTextRoleRule.php
22
+ - packages/guides-restructured-text/src/RestructuredText/Parser/Productions/InlineRules/EmphasisRule.php
23
+ - packages/guides-restructured-text/src/RestructuredText/Parser/Productions/InlineRules/StrongRule.php
24
+ - packages/guides-restructured-text/src/RestructuredText/Parser/Productions/InlineRules/TextRoleRule.php
25
+ - packages/guides-restructured-text/src/RestructuredText/Parser/Productions/InlineRules/VariableInlineRule.php
26
+
16
27
paths :
17
28
- packages/guides/src
18
29
- packages/guides-markdown/src
You can’t perform that action at this time.
0 commit comments