Issues (811)

src/Bootloader/BootloaderRegistryInterface.php (1 issue)

Labels
Severity
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Spiral\Boot\Bootloader;
6
7
/**
8
 * @psalm-import-type TClass from \Spiral\Boot\BootloadManagerInterface
9
 */
10
interface BootloaderRegistryInterface
11
{
12
    /**
13
     * @param TClass|array<TClass, array<string, mixed>> $bootloader
0 ignored issues
show
The type Spiral\Boot\Bootloader\TClass 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...
14
     *
15
     * Examples:
16
     *  1. SimpleBootloader::class,
17
     *  2. [SimpleBootloader::class => ['option' => 'value']]
18
     */
19
    public function registerSystem(string|array $bootloader): void;
20
21
    /**
22
     * @param TClass|array<TClass, array<string, mixed>> $bootloader
23
     *
24
     * Examples:
25
     *  1. SimpleBootloader::class,
26
     *  2. [SimpleBootloader::class => ['option' => 'value']]
27
     */
28
    public function register(string|array $bootloader): void;
29
30
    /**
31
     * @return array<TClass>|array<TClass, array<string, mixed>>
32
     */
33
    public function getSystemBootloaders(): array;
34
35
    /**
36
     * @return array<TClass>|array<TClass, array<string, mixed>>
37
     */
38
    public function getBootloaders(): array;
39
}
40