Skip to content

Commit b4228df

Browse files
Merge branch '3.0'
* 3.0: [DI] Fix internal caching in AutowirePass [PropertyInfo] Remove useless return statement [Console] use ANSI escape sequences in ProgressBar overwrite method [HttpKernel] Fix wrong number of arguments in call of ExceptionListener::logException() Replace iconv_*() uses by mb_*(), add mbstring polyfill when required [DependencyInjection] Remove YAML check in CrossCheckTest [Process] Consistently use getProcess() in tests [LDAP] Free the search result after a search to free memory [DependencyInjection] fix phpDoc Conflicts: src/Symfony/Component/Ldap/LdapClient.php
2 parents 08578ff + 335d3df commit b4228df

22 files changed

+21
-83
lines changed

Alias.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ class Alias
1717
private $public;
1818

1919
/**
20-
* Constructor.
21-
*
2220
* @param string $id Alias identifier
2321
* @param bool $public If this alias is public
2422
*/

Compiler/AnalyzeServiceReferencesPass.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ class AnalyzeServiceReferencesPass implements RepeatablePassInterface
3434
private $onlyConstructorArguments;
3535

3636
/**
37-
* Constructor.
38-
*
3937
* @param bool $onlyConstructorArguments Sets this Service Reference pass to ignore method calls
4038
*/
4139
public function __construct($onlyConstructorArguments = false)

Compiler/AutowirePass.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ private function createAutowiredDefinition(\ReflectionClass $typeHint, $id)
278278
* @param string $id
279279
* @param Definition $definition
280280
*
281-
* @return \ReflectionClass|null
281+
* @return \ReflectionClass|false
282282
*/
283283
private function getReflectionClass($id, Definition $definition)
284284
{
@@ -288,16 +288,18 @@ private function getReflectionClass($id, Definition $definition)
288288

289289
// Cannot use reflection if the class isn't set
290290
if (!$class = $definition->getClass()) {
291-
return;
291+
return false;
292292
}
293293

294294
$class = $this->container->getParameterBag()->resolveValue($class);
295295

296296
try {
297-
return $this->reflectionClasses[$id] = new \ReflectionClass($class);
297+
$reflector = new \ReflectionClass($class);
298298
} catch (\ReflectionException $reflectionException) {
299-
// return null
299+
$reflector = false;
300300
}
301+
302+
return $this->reflectionClasses[$id] = $reflector;
301303
}
302304

303305
private function addServiceToAmbiguousType($id, $type)

Compiler/Compiler.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@ class Compiler
2525
private $loggingFormatter;
2626
private $serviceReferenceGraph;
2727

28-
/**
29-
* Constructor.
30-
*/
3128
public function __construct()
3229
{
3330
$this->passConfig = new PassConfig();

Compiler/PassConfig.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ class PassConfig
3535
private $optimizationPasses;
3636
private $removingPasses;
3737

38-
/**
39-
* Constructor.
40-
*/
4138
public function __construct()
4239
{
4340
$this->mergePass = new MergeExtensionConfigurationPass();

Compiler/RepeatedPass.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ class RepeatedPass implements CompilerPassInterface
3232
private $passes;
3333

3434
/**
35-
* Constructor.
36-
*
3735
* @param RepeatablePassInterface[] $passes An array of RepeatablePassInterface objects
3836
*
3937
* @throws InvalidArgumentException when the passes don't implement RepeatablePassInterface

Compiler/ServiceReferenceGraphEdge.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ class ServiceReferenceGraphEdge
2525
private $value;
2626

2727
/**
28-
* Constructor.
29-
*
3028
* @param ServiceReferenceGraphNode $sourceNode
3129
* @param ServiceReferenceGraphNode $destNode
3230
* @param string $value

Compiler/ServiceReferenceGraphNode.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ class ServiceReferenceGraphNode
2929
private $value;
3030

3131
/**
32-
* Constructor.
33-
*
3432
* @param string $id The node identifier
3533
* @param mixed $value The node value
3634
*/

Container.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,6 @@ class Container implements ResettableContainerInterface
7171
private $underscoreMap = array('_' => '', '.' => '_', '\\' => '_');
7272

7373
/**
74-
* Constructor.
75-
*
7674
* @param ParameterBagInterface $parameterBag A ParameterBagInterface instance
7775
*/
7876
public function __construct(ParameterBagInterface $parameterBag = null)

Definition.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@ class Definition
4242
protected $arguments;
4343

4444
/**
45-
* Constructor.
46-
*
4745
* @param string|null $class The service class
4846
* @param array $arguments An array of arguments to pass to the service constructor
4947
*/

0 commit comments

Comments
 (0)