Skip to content

Commit 727afc1

Browse files
committed
fix namespace issue on exception
Signed-off-by: apathetic012 <apathetic012@gmail.com>
1 parent 7256dc2 commit 727afc1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

laravel/ioc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ protected static function build($type, $parameters = array())
158158
// no binding registered for the abstraction so we need to bail out.
159159
if ( ! $reflector->isInstantiable())
160160
{
161-
throw new Exception("Resolution target [$type] is not instantiable.");
161+
throw new \Exception("Resolution target [$type] is not instantiable.");
162162
}
163163

164164
$constructor = $reflector->getConstructor();
@@ -195,7 +195,7 @@ protected static function dependencies($parameters)
195195
// we'll just bomb out with an error since we have nowhere to go.
196196
if (is_null($dependency))
197197
{
198-
throw new Exception("Unresolvable dependency resolving [$parameter].");
198+
throw new \Exception("Unresolvable dependency resolving [$parameter].");
199199
}
200200

201201
$dependencies[] = static::resolve($dependency->name);

0 commit comments

Comments
 (0)