We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4742e79 + 7fb120a commit 5fd56a0Copy full SHA for 5fd56a0
Parser/Parser.php
@@ -79,7 +79,7 @@ public static function parseSeries(array $tokens): array
79
return [2, 0];
80
case 'n' === $joined:
81
return [1, 0];
82
- case false === strpos($joined, 'n'):
+ case !str_contains($joined, 'n'):
83
return [0, $int($joined)];
84
}
85
XPath/Translator.php
@@ -63,11 +63,11 @@ public function __construct(ParserInterface $parser = null)
63
64
public static function getXpathLiteral(string $element): string
65
{
66
- if (false === strpos($element, "'")) {
+ if (!str_contains($element, "'")) {
67
return "'".$element."'";
68
69
70
- if (false === strpos($element, '"')) {
+ if (!str_contains($element, '"')) {
71
return '"'.$element.'"';
72
73
0 commit comments