Issues (7)

src/View/Event.php (2 issues)

1
<?php
2
3
namespace pjpawel\Magis\View;
4
5
/**
6
 * @author Paweł Podgórski <[email protected]>
7
 */
8
enum Event
9
{
10
11
    case BeginPage;
12
    case Head;
13
    case BeforeBody;
14
    case BeginBody;
15
    case EndBody;
16
    case EndPage;
17
    case AfterRender;
18
19
    /**
20
     * @return list<self> All events in order
0 ignored issues
show
The type pjpawel\Magis\View\list 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. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
21
     */
22
    public static function getAllEvents(): array
23
    {
24
        return [
0 ignored issues
show
Bug Best Practice introduced by
The expression return array(self::Begin...age, self::AfterRender) returns the type array<integer,pjpawel\Magis\View\Event> which is incompatible with the documented return type pjpawel\Magis\View\list.
Loading history...
25
            self::BeginPage,
26
            self::Head,
27
            self::BeforeBody,
28
            self::BeginBody,
29
            self::EndBody,
30
            self::EndPage,
31
            self::AfterRender
32
        ];
33
    }
34
}
35