1 | <?php |
||
2 | |||
3 | /** |
||
4 | * @copyright Bluz PHP Team |
||
5 | * @link https://github.com/bluzphp/skeleton |
||
6 | */ |
||
7 | |||
8 | declare(strict_types=1); |
||
9 | |||
10 | namespace Application\Events; |
||
11 | |||
12 | use Bluz\Grid\Source\SelectSource; |
||
0 ignored issues
–
show
|
|||
13 | |||
14 | /** |
||
15 | * Grid of Events |
||
16 | * |
||
17 | * @package Application\Events |
||
18 | * |
||
19 | * @method Row[] getData() |
||
20 | */ |
||
21 | class Grid extends \Bluz\Grid\Grid |
||
0 ignored issues
–
show
The type
Bluz\Grid\Grid was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
22 | { |
||
23 | /** |
||
24 | * @var string |
||
25 | */ |
||
26 | protected $uid = 'events'; |
||
27 | |||
28 | /** |
||
29 | * @return void |
||
30 | */ |
||
31 | public function init(): void |
||
32 | { |
||
33 | // Current table as source of grid |
||
34 | $adapter = new SelectSource(); |
||
35 | $adapter->setSource(Table::select()); |
||
36 | |||
37 | $this->setAdapter($adapter); |
||
38 | $this->setDefaultLimit(25); |
||
39 | $this->setDefaultOrder('events.id', Grid::ORDER_DESC); |
||
40 | $this->setAllowFilters([ |
||
41 | 'id', |
||
42 | 'event', |
||
43 | 'target', |
||
44 | 'created', |
||
45 | 'updated', |
||
46 | ]); |
||
47 | $this->setAllowOrders([ |
||
48 | 'id', |
||
49 | 'event', |
||
50 | 'target', |
||
51 | 'created', |
||
52 | 'updated', |
||
53 | ]); |
||
54 | } |
||
55 | } |
||
56 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths