Skip to content

Commit 7cccdf1

Browse files
committed
Fix typo
1 parent 763554f commit 7cccdf1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Support/JsString.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ protected function convertDataToJavaScriptExpression($data, $flags = 0, $depth =
8888
$json = $this->jsonEncode($data, $flags, $depth);
8989

9090
if (is_string($data)) {
91-
return "'".substr($json, 1, '-1')."'";
91+
return "'".substr($json, 1, -1)."'";
9292
}
9393

9494
return $this->convertJsonToJavaScriptExpression($json, $flags);

0 commit comments

Comments
 (0)