Skip to content

Commit ed8dd86

Browse files
minor symfony#28463 KernelInterface can return null for getContainer method (gmponos)
This PR was submitted for the master branch but it was merged into the 2.8 branch instead (closes symfony#28463). Discussion ---------- KernelInterface can return null for getContainer method | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | License | MIT According to [this](https://github.com/symfony/symfony/blob/master/src/Symfony/Bundle/FrameworkBundle/Client.php#L45) a KernelInterface can return null if it is shutdown. Commits ------- 7cb340a KernelInterface can return null container
2 parents c75b1ed + 7cb340a commit ed8dd86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpKernel/KernelInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public function getRootDir();
139139
/**
140140
* Gets the current container.
141141
*
142-
* @return ContainerInterface A ContainerInterface instance
142+
* @return ContainerInterface|null A ContainerInterface instance or null when the Kernel is shutdown
143143
*/
144144
public function getContainer();
145145

0 commit comments

Comments
 (0)