Skip to content

Commit 754c940

Browse files
committed
PHP 8.0 > Trying to access array offset on value of type bool
1 parent 89c24cf commit 754c940

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
@@ -168,7 +168,7 @@ static protected function dumpArray($value)
168168
*/
169169
static public function parseScalar($scalar, $delimiters = null, $stringDelimiters = array('"', "'"), &$i = 0, $evaluate = true)
170170
{
171-
if (in_array($scalar[$i], $stringDelimiters))
171+
if (is_string($scalar) && in_array($scalar[$i], $stringDelimiters))
172172
{
173173
// quoted scalar
174174
$output = self::parseQuotedScalar($scalar, $i);

0 commit comments

Comments
 (0)