Skip to content

Commit 13bfee2

Browse files
committedDec 13, 2022
PHP 8.0 > Passing null to parameter #1 ($haystack) of type string is deprecated
1 parent 754c940 commit 13bfee2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lib/yaml/sfYamlInline.class.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ static protected function parseSequence($sequence, &$i = 0)
272272
$isQuoted = in_array($sequence[$i], array('"', "'"));
273273
$value = self::parseScalar($sequence, array(',', ']'), array('"', "'"), $i);
274274

275-
if (!$isQuoted && false !== strpos($value, ': '))
275+
if (!$isQuoted && false !== strpos((string) $value, ': '))
276276
{
277277
// embedded mapping?
278278
try

0 commit comments

Comments
 (0)