Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Lines changed: 1 addition & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /