Skip to content

Commit 29a4ac2

Browse files
committed
Merge pull request laravel#1049 from Apathetic012/develop
fix namespace issue on exception
2 parents 343d132 + 727afc1 commit 29a4ac2

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
@@ -159,7 +159,7 @@ protected static function build($type, $parameters = array())
159159
// no binding registered for the abstraction so we need to bail out.
160160
if ( ! $reflector->isInstantiable())
161161
{
162-
throw new Exception("Resolution target [$type] is not instantiable.");
162+
throw new \Exception("Resolution target [$type] is not instantiable.");
163163
}
164164

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

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

0 commit comments

Comments
 (0)