Skip to content

Commit 9748546

Browse files
committed
Merge branch '2.8' into 3.1
* 2.8: (26 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 [TwigBundle] do not lose already set method calls #20411 fix Yaml parsing for very long quoted strings CS: apply is_null DX: remove invalid inheritdoc bumped Symfony version to 2.8.17 updated VERSION for 2.8.16 ...
2 parents bedcf6d + bb9cf2a commit 9748546

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
@@ -109,7 +109,7 @@ public function supports($resource, $type = null)
109109
* @param array $content
110110
* @param string $file
111111
*/
112-
private function parseImports($content, $file)
112+
private function parseImports(array $content, $file)
113113
{
114114
if (!isset($content['imports'])) {
115115
return;
@@ -136,7 +136,7 @@ private function parseImports($content, $file)
136136
* @param array $content
137137
* @param string $file
138138
*/
139-
private function parseDefinitions($content, $file)
139+
private function parseDefinitions(array $content, $file)
140140
{
141141
if (!isset($content['services'])) {
142142
return;
@@ -154,9 +154,9 @@ private function parseDefinitions($content, $file)
154154
/**
155155
* Parses a definition.
156156
*
157-
* @param string $id
158-
* @param array $service
159-
* @param string $file
157+
* @param string $id
158+
* @param array|string $service
159+
* @param string $file
160160
*
161161
* @throws InvalidArgumentException When tags are invalid
162162
*/
@@ -459,7 +459,7 @@ private function resolveServices($value)
459459
*
460460
* @param array $content
461461
*/
462-
private function loadFromExtensions($content)
462+
private function loadFromExtensions(array $content)
463463
{
464464
foreach ($content as $namespace => $values) {
465465
if (in_array($namespace, array('imports', 'parameters', 'services'))) {

0 commit comments

Comments
 (0)