Skip to content

Commit

Permalink
fix: Uninitialized string offset 0 for @Date directive
Browse files Browse the repository at this point in the history
  • Loading branch information
djl997 committed Oct 25, 2023
1 parent 4de5283 commit e1f6f4a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/BladeShortcutsBladeDirectives.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@ public function config(string $expression): string
*/
public function date(string $expression): string
{
$arr = Parser::multipleArgs($expression);

if ($expression[0] == 'null')
if ($expression == 'null')
return "";

$arr = Parser::multipleArgs($expression);

if (empty($expression))
$expression = 'null';

Expand Down

0 comments on commit e1f6f4a

Please sign in to comment.