Conditions | 3 |
Paths | 3 |
Total Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
29 | public function require(): bool |
||
30 | { |
||
31 | if (class_exists($this->class, false)) { |
||
32 | return true; |
||
33 | } |
||
34 | |||
35 | if (! is_file($this->path)) { |
||
36 | return false; |
||
37 | } |
||
38 | |||
39 | assert(file_exists($this->path)); // https://github.com/vimeo/psalm/issues/4788 |
||
40 | require $this->path; |
||
41 | |||
42 | return true; |
||
43 | } |
||
44 | } |
||
45 |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.