Skip to content
This repository has been archived by the owner on Aug 13, 2023. It is now read-only.

Commit

Permalink
Update Argument.php
Browse files Browse the repository at this point in the history
  • Loading branch information
rez1dent3 authored Apr 17, 2017
1 parent 383090f commit 5315aff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DI/Argument.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function get()
{
$arguments[$key] = $argument;

if (is_string($argument) && $argument{0} === '@')
if (!empty($argument) && is_string($argument) && $argument{0} === '@')
{
$argument = substr($argument, 1);

Expand All @@ -49,4 +49,4 @@ public function get()
return $arguments;
}

}
}

0 comments on commit 5315aff

Please sign in to comment.