Skip to content

Commit a51dd70

Browse files
Merge branch '3.4' into 4.3
* 3.4: cs fix Partially Revert "Remove trailing space in all markdown files" [Intl] Explicit check Fix getMaxFilesize() returning zero [DI] fix docblocks in Container* Fixed markdown file [TwigBridge] Replaced plain doc block copies with inheritdoc. [Intl] Cleanup unused language aliases entry
2 parents a58d9dc + 7c98027 commit a51dd70

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

Container.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@ public function setParameter($name, $value)
141141
* Setting a synthetic service to null resets it: has() returns false and get()
142142
* behaves in the same way as if the service was never created.
143143
*
144-
* @param string $id The service identifier
145-
* @param object $service The service instance
144+
* @param string $id The service identifier
145+
* @param object|null $service The service instance
146146
*/
147147
public function set($id, $service)
148148
{
@@ -210,7 +210,7 @@ public function has($id)
210210
* @param string $id The service identifier
211211
* @param int $invalidBehavior The behavior when the service does not exist
212212
*
213-
* @return object The associated service
213+
* @return object|null The associated service
214214
*
215215
* @throws ServiceCircularReferenceException When a circular reference is detected
216216
* @throws ServiceNotFoundException When the service is not defined

ContainerBuilder.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -488,8 +488,8 @@ public function getCompiler()
488488
/**
489489
* Sets a service.
490490
*
491-
* @param string $id The service identifier
492-
* @param object $service The service instance
491+
* @param string $id The service identifier
492+
* @param object|null $service The service instance
493493
*
494494
* @throws BadMethodCallException When this ContainerBuilder is compiled
495495
*/
@@ -540,7 +540,7 @@ public function has($id)
540540
* @param string $id The service identifier
541541
* @param int $invalidBehavior The behavior when the service does not exist
542542
*
543-
* @return object The associated service
543+
* @return object|null The associated service
544544
*
545545
* @throws InvalidArgumentException when no definitions are available
546546
* @throws ServiceCircularReferenceException When a circular reference is detected
@@ -1070,7 +1070,7 @@ public function findDefinition($id)
10701070
* @param string $id The service identifier
10711071
* @param bool $tryProxy Whether to try proxying the service with a lazy proxy
10721072
*
1073-
* @return object The service described by the service definition
1073+
* @return mixed The service described by the service definition
10741074
*
10751075
* @throws RuntimeException When the factory definition is incomplete
10761076
* @throws RuntimeException When the service is a synthetic service
@@ -1636,7 +1636,7 @@ private function callMethod($service, $call, array &$inlineServices)
16361636
* Shares a given service in the container.
16371637
*
16381638
* @param Definition $definition
1639-
* @param object $service
1639+
* @param mixed $service
16401640
* @param string|null $id
16411641
*/
16421642
private function shareService(Definition $definition, $service, $id, array &$inlineServices)

ContainerInterface.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ interface ContainerInterface extends PsrContainerInterface
3333
/**
3434
* Sets a service.
3535
*
36-
* @param string $id The service identifier
37-
* @param object $service The service instance
36+
* @param string $id The service identifier
37+
* @param object|null $service The service instance
3838
*/
3939
public function set($id, $service);
4040

@@ -44,7 +44,7 @@ public function set($id, $service);
4444
* @param string $id The service identifier
4545
* @param int $invalidBehavior The behavior when the service does not exist
4646
*
47-
* @return object The associated service
47+
* @return object|null The associated service
4848
*
4949
* @throws ServiceCircularReferenceException When a circular reference is detected
5050
* @throws ServiceNotFoundException When the service is not defined

0 commit comments

Comments
 (0)