Skip to content

Commit

Permalink
Add use strict comparison for in_array() function
Browse files Browse the repository at this point in the history
  • Loading branch information
devanych committed Oct 1, 2020
1 parent 7591575 commit e684367
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Container.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ private function createObject(string $className): object
throw new ContainerException(sprintf('Unable to create object `%s`.', $className), 0, $e);
}

if (in_array(FactoryInterface::class, $reflection->getInterfaceNames())) {
if (in_array(FactoryInterface::class, $reflection->getInterfaceNames(), true)) {
try {
/** @var FactoryInterface $factory */
$factory = $this->getObjectFromReflection($reflection);
Expand Down

0 comments on commit e684367

Please sign in to comment.