Are you sure the usage of $container->setParameter...ophecy\Argument::any()) targeting Symfony\Component\Depend...ntainer::setParameter() seems to always return null.
This check looks for function or method calls that always return null and whose
return value is used.
This check looks for calls to methods that do not seem to exist on a given type.
It looks for the method on the type itself as well as in inherited classes or
implemented interfaces.
This is most likely a typographical error or the method has been renamed.
Prophecy\Argument::any() of type Prophecy\Argument\Token\AnyValueToken is incompatible with the type Symfony\Component\DependencyInjection\Definition expected by parameter $definition of Symfony\Component\Depend...uilder::setDefinition().
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
The method load() does not exist on Tests\CalendarBundle\Dep...n\CalendarExtensionSpec. Since you implemented __call, consider adding a @method annotation.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
This check looks for function or method calls that always return null and whose return value is used.
The method
getObject()
can return nothing but null, so it makes no sense to use the return value.The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes.