Skip to content

Commit 2227a28

Browse files
committed
Merge branch '3.1' into 3.2
* 3.1: (31 commits) fixed CS fixed CS fixed CS fixer config fixed typo Revert "fixed typo" fixed typo fixed CS Avoid setting request attributes from signature arguments in AnnotationClassLoader [DependencyInjection] Add some missing typehints in YamlFileLoader [DependencyInjection] minor: Fix a DocBlock [HttpKernel] Give higher priority to adding request formats [PropertyInfo] Don't try to access a property thru a static method [PropertyInfo] Exclude static methods form properties guessing [FrameworkBundle] Fix third level headers for MarkdownDescriptor [Ldap] Using Ldap stored username instead of form submitted one [Ldap] load users with the good username case [DoctrineBridge] Fixed invalid unique value as composite key [Doctrine Bridge] fix UniqueEntityValidator for composite object primary keys [TwigBundle] do not lose already set method calls #20411 fix Yaml parsing for very long quoted strings ...
2 parents 22b2c97 + 9748546 commit 2227a28

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

Compiler/CheckCircularReferencesPass.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ private function checkOutEdges(array $edges)
6060
$id = $node->getId();
6161

6262
if (empty($this->checkedNodes[$id])) {
63-
6463
// don't check circular dependencies for lazy services
6564
if (!$node->getValue() || !$node->getValue()->isLazy()) {
6665
$searchKey = array_search($id, $this->currentPath);

Definition.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public function setDecoratedService($id, $renamedId = null, $priority = 0)
106106
}
107107

108108
/**
109-
* Gets the service that decorates this service.
109+
* Gets the service that this service is decorating.
110110
*
111111
* @return null|array An array composed of the decorated service id, the new id for it and the priority of decoration, null if no service is decorated
112112
*/

Loader/YamlFileLoader.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public function supports($resource, $type = null)
110110
* @param array $content
111111
* @param string $file
112112
*/
113-
private function parseImports($content, $file)
113+
private function parseImports(array $content, $file)
114114
{
115115
if (!isset($content['imports'])) {
116116
return;
@@ -137,7 +137,7 @@ private function parseImports($content, $file)
137137
* @param array $content
138138
* @param string $file
139139
*/
140-
private function parseDefinitions($content, $file)
140+
private function parseDefinitions(array $content, $file)
141141
{
142142
if (!isset($content['services'])) {
143143
return;
@@ -155,9 +155,9 @@ private function parseDefinitions($content, $file)
155155
/**
156156
* Parses a definition.
157157
*
158-
* @param string $id
159-
* @param array $service
160-
* @param string $file
158+
* @param string $id
159+
* @param array|string $service
160+
* @param string $file
161161
*
162162
* @throws InvalidArgumentException When tags are invalid
163163
*/
@@ -486,7 +486,7 @@ private function resolveServices($value)
486486
*
487487
* @param array $content
488488
*/
489-
private function loadFromExtensions($content)
489+
private function loadFromExtensions(array $content)
490490
{
491491
foreach ($content as $namespace => $values) {
492492
if (in_array($namespace, array('imports', 'parameters', 'services'))) {

0 commit comments

Comments
 (0)