Skip to content

Commit 1f47818

Browse files
author
Fady michel
committed
fix bug : Uninitialized string offset: 0 in QuotedProcessor.php on line 29
1 parent e61e0a0 commit 1f47818

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Processor/QuotedProcessor.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ public function execute()
2626

2727
private function isWrappedByChar(string $value, string $char) : bool
2828
{
29-
return $value[0] === $char && $value[-1] === $char;
29+
return !empty($value) && $value[0] === $char && $value[-1] === $char;
3030
}
3131
}

0 commit comments

Comments
 (0)