8000 Update src/Symfony/Component/DependencyInjection/Container.php · lchenay/symfony@82ee78c · GitHub
[go: up one dir, main page]

Skip to content

Commit 82ee78c

Browse files
committed
Update src/Symfony/Component/DependencyInjection/Container.php
This throw an exception and should not with isset: 'something' exist as service $this->container->set('something', null); if (null !== $this->container->get('something')) {     throw new \Exception('Should be null'); }
1 parent 7a233bc commit 82ee78c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/DependencyInjection/Container.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ public function get($id, $invalidBehavior = self::EXCEPTION_ON_INVALID_REFERENCE
238238
{
239239
$id = strtolower($id);
240240

241-
if (isset($this->services[$id])) {
241+
if (array_key_exists($id, $this->services)) {
242242
return $this->services[$id];
243243
}
244244

0 commit comments

Comments
 (0)
0