File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ public static function parseSeries(array $tokens): array
79
79
return [2 , 0 ];
80
80
case 'n ' === $ joined :
81
81
return [1 , 0 ];
82
- case false === strpos ($ joined , 'n ' ):
82
+ case ! str_contains ($ joined , 'n ' ):
83
83
return [0 , $ int ($ joined )];
84
84
}
85
85
Original file line number Diff line number Diff line change @@ -63,11 +63,11 @@ public function __construct(ParserInterface $parser = null)
63
63
64
64
public static function getXpathLiteral (string $ element ): string
65
65
{
66
- if (false === strpos ($ element , "' " )) {
66
+ if (! str_contains ($ element , "' " )) {
67
67
return "' " .$ element ."' " ;
68
68
}
69
69
70
- if (false === strpos ($ element , '" ' )) {
70
+ if (! str_contains ($ element , '" ' )) {
71
71
return '" ' .$ element .'" ' ;
72
72
}
73
73
Original file line number Diff line number Diff line change 20
20
}
21
21
],
22
22
"require" : {
23
- "php" : " >=7.1.3"
23
+ "php" : " >=7.1.3" ,
24
+ "symfony/polyfill-php80" : " ^1.16"
24
25
},
25
26
"autoload" : {
26
27
"psr-4" : { "Symfony\\ Component\\ CssSelector\\ " : " " },
You can’t perform that action at this time.
0 commit comments