for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Install GitHub App
<?php
namespace Backpack\CRUD;
use Backpack\CRUD\Injectables\CheckUnique as CheckUnique;
class CrudInjectable
{
use CheckUnique;
protected $requiredInjectables = [];
protected $name = null;
protected $options = null;
protected $controller = null;
public function __construct($name, $controller, $options)
$this->name = $name;
$this->options = $options;
$this->controller = $controller;
}
public function with($injectables)
if (is_string($injectables)) {
$this->requiredInjectables[] = 'with'.ucwords($injectables);
} elseif (is_array($injectables)) {
foreach ($injectables as $injectable) {
$this->requiredInjectables = 'with'.ucwords($injectable);
'with' . ucwords($injectable)
string
array
$requiredInjectables
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..
return $this->inject();
private function inject()
foreach ($this->requiredInjectables as $injectable) {
$this->{$injectable}();
public function __call($method, $parameters = null)
if (method_exists($this, $method)) {
$this->{$method}($parameters);
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..