1 | <?php |
||
22 | class VaultBootloader extends Bootloader implements SingletonInterface |
||
23 | { |
||
24 | const BOOT = true; |
||
25 | |||
26 | /** |
||
27 | * @var \Spiral\Vault\VaultRoute |
||
28 | */ |
||
29 | private $route; |
||
30 | |||
31 | /** |
||
32 | * @var array |
||
33 | */ |
||
34 | const BINDINGS = [ |
||
35 | 'vault' => Vault::class, |
||
36 | ]; |
||
37 | |||
38 | /** |
||
39 | * @var array |
||
40 | */ |
||
41 | const SINGLETONS = [ |
||
42 | Vault::class => [self::class, 'makeVault'] |
||
43 | ]; |
||
44 | |||
45 | /** |
||
46 | * @param HttpDispatcher $http |
||
47 | * @param VaultConfig $config |
||
48 | */ |
||
49 | public function boot(HttpDispatcher $http, VaultConfig $config) |
||
55 | |||
56 | /** |
||
57 | * @param VaultConfig $config |
||
58 | * @param CoreInterface $core |
||
59 | * |
||
60 | * @return Vault |
||
61 | */ |
||
62 | protected function makeVault(VaultConfig $config, CoreInterface $core): Vault |
||
66 | } |
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..