for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Gewaer\Api\Controllers;
use Gewaer\Models\Roles;
/**
* Base controller
*
*/
class RolesController extends BaseController
{
/*
* fields we accept to create
* @var array
protected $createFields = [];
protected $updateFields = [];
* set objects
* @return void
public function onConstruct()
$this->model = new Roles();
new Gewaer\Models\Roles()
Gewaer\Models\Roles
array
$model
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..
//get the list of roes for the systema + my company
$this->additionalSearchFields = [
['is_deleted', ':', 0],
['company_id', ':', '(0,' . $this->userData->default_company . ')'],
userData
Gewaer\Api\Controllers\RolesController
__get
];
}