for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Spekkionu\ZendAcl;
use Illuminate\Support\ServiceProvider;
use Laminas\Permissions\Acl\Acl;
use Illuminate\Contracts\Foundation\Application;
class ZendAclLumenServiceProvider extends ServiceProvider
{
/**
* Indicates if loading of the provider is deferred.
*
* @var bool
*/
protected $defer = false;
* Bootstrap the application events.
* @return void
public function boot()
$this->loadViewsFrom(dirname(dirname(__DIR__)).'/views', 'zendacl');
}
* Register the service provider.
public function register()
$this->app->configure('zendacl');
configure()
Illuminate\Contracts\Foundation\Application
registerConfiguredProviders()
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.
$this->app->singleton(function (Application $app) {
function (\Illuminate\Co... } return $acl; }
object<Closure>
string
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example:
function acceptsInteger($int) { } $x = '123'; // string "123" // Instead of acceptsInteger($x); // we recommend to use acceptsInteger((integer) $x);
$acl = new Acl;
if (file_exists(base_path('app/Http/acl.php'))) {
include base_path('app/Http/acl.php');
return $acl;
});
$this->app->singleton('Laminas\Permissions\Acl\Acl', function (Application $app) {
return $app->make('acl');
* Get the services provided by the provider.
* @return array
public function provides()
return array('acl', 'Laminas\Permissions\Acl\Acl');
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.