Skip to content

Commit cf1a423

Browse files
Merge branch '2.8' into 3.4
* 2.8: Use the real image URL for the filesystem tests [Finder] Update PHPdoc append() [DI] Fix phpdoc Fix code examples in PHPDoc [HttpKernel] Fix inheritdocs
2 parents 09d7df7 + 1607759 commit cf1a423

File tree

3 files changed

+14
-11
lines changed

3 files changed

+14
-11
lines changed

ContainerAwareInterface.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,8 @@
1818
*/
1919
interface ContainerAwareInterface
2020
{
21+
/**
22+
* Sets the container.
23+
*/
2124
public function setContainer(ContainerInterface $container = null);
2225
}

ContainerBuilder.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -647,10 +647,10 @@ private function doGet($id, $invalidBehavior = ContainerInterface::EXCEPTION_ON_
647647
* the parameters passed to the container constructor to have precedence
648648
* over the loaded ones.
649649
*
650-
* $container = new ContainerBuilder(new ParameterBag(array('foo' => 'bar')));
651-
* $loader = new LoaderXXX($container);
652-
* $loader->load('resource_name');
653-
* $container->register('foo', 'stdClass');
650+
* $container = new ContainerBuilder(new ParameterBag(array('foo' => 'bar')));
651+
* $loader = new LoaderXXX($container);
652+
* $loader->load('resource_name');
653+
* $container->register('foo', 'stdClass');
654654
*
655655
* In the above example, even if the loaded resource defines a foo
656656
* parameter, the value will still be 'bar' as defined in the ContainerBuilder
@@ -1288,14 +1288,14 @@ private function doResolveServices($value, array &$inlineServices = array(), $is
12881288
*
12891289
* Example:
12901290
*
1291-
* $container->register('foo')->addTag('my.tag', array('hello' => 'world'));
1291+
* $container->register('foo')->addTag('my.tag', array('hello' => 'world'));
12921292
*
1293-
* $serviceIds = $container->findTaggedServiceIds('my.tag');
1294-
* foreach ($serviceIds as $serviceId => $tags) {
1295-
* foreach ($tags as $tag) {
1296-
* echo $tag['hello'];
1293+
* $serviceIds = $container->findTaggedServiceIds('my.tag');
1294+
* foreach ($serviceIds as $serviceId => $tags) {
1295+
* foreach ($tags as $tag) {
1296+
* echo $tag['hello'];
1297+
* }
12971298
* }
1298-
* }
12991299
*
13001300
* @param string $name
13011301
* @param bool $throwOnAbstract

Definition.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public function setFactory($factory)
109109
/**
110110
* Gets the factory.
111111
*
112-
* @return string|array The PHP function or an array containing a class/Reference and a method to call
112+
* @return string|array|null The PHP function or an array containing a class/Reference and a method to call
113113
*/
114114
public function getFactory()
115115
{

0 commit comments

Comments
 (0)