Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 088daea

Browse filesBrowse files
committed
CS
1 parent 36edde2 commit 088daea
Copy full SHA for 088daea

File tree

1 file changed

+5
-6
lines changed
Filter options

1 file changed

+5
-6
lines changed

‎src/Symfony/Component/DependencyInjection/Compiler/AutowirePass.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/DependencyInjection/Compiler/AutowirePass.php
+5-6Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -308,12 +308,11 @@ private function autowireMethodCall(\ReflectionMethod $reflectionMethod, array $
308308
private function autowireOverridenGetters(array $overridenGetters, array $autowiredMethod)
309309
{
310310
foreach ($autowiredMethod as $reflectionMethod) {
311-
if (
312-
isset($overridenGetters[strtolower($reflectionMethod->name)]) ||
313-
!method_exists($reflectionMethod, 'getReturnType') ||
314-
0 !== $reflectionMethod->getNumberOfParameters() ||
315-
$reflectionMethod->isFinal() ||
316-
$reflectionMethod->returnsReference() ||
311+
if (isset($overridenGetters[strtolower($reflectionMethod->name)])
312+
|| !method_exists($reflectionMethod, 'getReturnType')
313+
|| 0 !== $reflectionMethod->getNumberOfParameters()
314+
|| $reflectionMethod->isFinal()
315+
|| $reflectionMethod->returnsReference() ||
317316
!($returnType = $reflectionMethod->getReturnType())
318317
) {
319318
continue;

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.