From 5315aff69f8231e6dea8d717a21248a7774564d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D0=B0=D0=B1=D0=B8=D1=87=D0=B5=D0=B2=20=D0=9C=D0=B0?= =?UTF-8?q?=D0=BA=D1=81=D0=B8=D0=BC?= Date: Mon, 17 Apr 2017 11:53:13 +0300 Subject: [PATCH] Update Argument.php --- src/DI/Argument.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/DI/Argument.php b/src/DI/Argument.php index c2535ba..6cdc590 100644 --- a/src/DI/Argument.php +++ b/src/DI/Argument.php @@ -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); @@ -49,4 +49,4 @@ public function get() return $arguments; } -} \ No newline at end of file +}