Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 30e2382

Browse files
committed
Use nullable type
1 parent 399c3e3 commit 30e2382

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/ExpressionLanguage/Node/BinaryNode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ public function toArray()
173173
return ['(', $this->nodes['left'], ' '.$this->attributes['operator'].' ', $this->nodes['right'], ')'];
174174
}
175175

176-
private function evaluateMatches(string $regexp, string $str = null): int
176+
private function evaluateMatches(string $regexp, ?string $str): int
177177
{
178178
set_error_handler(function ($t, $m) use ($regexp) {
179179
throw new SyntaxError(sprintf('Regexp "%s" passed to "matches" is not valid', $regexp).substr($m, 12));

0 commit comments

Comments
 (0)