8000 [Refactor] Use bound method to check container bindings · tekord/laravel-json-api@e2f0eb7 · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Feb 17, 2023. It is now read-only.

Commit e2f0eb7

Browse files
committed
[Refactor] Use bound method to check container bindings
1 parent 08f0bf2 commit e2f0eb7

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

phpunit.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
processIsolation="false"
1111
stopOnError="false"
1212
stopOnFailure="false"
13-
syntaxCheck="true"
1413
verbose="true"
1514
>
1615
<testsuites>

src/Container.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ protected function createAuthorizerFromClassName($className)
442442
*/
443443
protected function create($className)
444444
{
445-
if ($this->container->has($className) || class_exists($className))
445+
if (class_exists($className) || $this->container->bound($className))
446446
return $this->container->make($className);
447447

448448
return null;

0 commit comments

Comments
 (0)
0