Skip to content

Commit 7ac2c1c

Browse files
jrchampGrahamCampbell
authored andcommitted
Loader: use isset instead of strpbrk (#223)
1 parent 08b7fbc commit 7ac2c1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Loader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ protected function sanitiseVariableName($name, $value)
312312
*/
313313
protected function beginsWithAQuote($value)
314314
{
315-
return strpbrk($value[0], '"\'') !== false;
315+
return isset($value[0]) && ($value[0] === '"' || $value[0] === '\'');
316316
}
317317

318318
/**

0 commit comments

Comments
 (0)