for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace TomPHP\ConfigServiceProvider\League;
use League\Container\ServiceProvider\AbstractServiceProvider;
use League\Container\ServiceProvider\BootableServiceProviderInterface;
use League\Container\ServiceProvider\ServiceProviderInterface;
use League\Container\ContainerInterface;
final class AggregateServiceProvider extends AbstractServiceProvider implements
BootableServiceProviderInterface
{
/**
* @var ServiceProviderInterface[]
*/
private $providers;
* @param ServiceProviderInterface[] $providers
public function __construct(array $providers)
$this->providers = $providers;
$this->provides = array_reduce(
array_reduce($this->prov...rovides()); }, array())
*
array
$provides
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..
$this->providers,
function (array $provides, ServiceProviderInterface $provider) {
return array_merge($provides, $provider->provides());
},
[]
);
}
public function setContainer(ContainerInterface $container)
parent::setContainer($container);
foreach ($this->providers as $provider) {
$provider->setContainer($container);
public function boot()
if ($provider instanceof BootableServiceProviderInterface) {
$provider->boot();
public function register()
$provider->register();
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..