Skip to content

Commit a3ecac9

Browse files
Merge branch '5.4' into 6.2
* 5.4: Use PHPUnit 9.6 to run Symfony's test suite [DependencyInjection] Add doc for RUNTIME_EXCEPTION_ON_INVALID_REFERENCE behavior
2 parents 6c910f3 + 478af36 commit a3ecac9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Container.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,12 @@ class_exists(ArgumentServiceLocator::class);
3737
* The container can have four possible behaviors when a service
3838
* does not exist (or is not initialized for the last case):
3939
*
40-
* * EXCEPTION_ON_INVALID_REFERENCE: Throws an exception (the default)
40+
* * EXCEPTION_ON_INVALID_REFERENCE: Throws an exception at compilation time (the default)
4141
* * NULL_ON_INVALID_REFERENCE: Returns null
4242
* * IGNORE_ON_INVALID_REFERENCE: Ignores the wrapping command asking for the reference
4343
* (for instance, ignore a setter if the service does not exist)
4444
* * IGNORE_ON_UNINITIALIZED_REFERENCE: Ignores/returns null for uninitialized services or invalid references
45+
* * RUNTIME_EXCEPTION_ON_INVALID_REFERENCE: Throws an exception at runtime
4546
*
4647
* @author Fabien Potencier <fabien@symfony.com>
4748
* @author Johannes M. Schmitt <schmittjoh@gmail.com>

0 commit comments

Comments
 (0)