Both the $myVar assignment in line 1 and the $higher assignment in line 2
are dead. The first because $myVar is never used and the second because
$higher is always overwritten for every possible time line.
Loading history...
11
12
$bundles = [
13
new \Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
14
new \JMS\SerializerBundle\JMSSerializerBundle($this),
The call to JMSSerializerBundle::__construct() has too many arguments starting with $this.
This check compares calls to functions or methods with their respective definitions.
If the call has more arguments than are defined, it raises an issue.
If a function is defined several times with a different number of parameters, the
check may pick up the wrong definition and report false positives. One codebase
where this has been known to happen is Wordpress.
In this case you can add the @ignorePhpDoc
annotation to the duplicate definition and it will be ignored.
Loading history...
15
new \FOS\RestBundle\FOSRestBundle(),
16
new \Doctrine\Bundle\DoctrineCacheBundle\DoctrineCacheBundle(),
17
new \Maikuro\DistributedConfigurationBundle\MaikuroDistributedConfigurationBundle(),
18
];
19
20
return $bundles;
21
}
22
23
public function registerContainerConfiguration(LoaderInterface $loader)
This check looks for variable assignements that are either overwritten by other assignments or where the variable is not used subsequently.
Both the
$myVar
assignment in line 1 and the$higher
assignment in line 2 are dead. The first because$myVar
is never used and the second because$higher
is always overwritten for every possible time line.