These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | /** |
||
3 | * This file is part of the BEAR.Package package. |
||
4 | * |
||
5 | * @license http://opensource.org/licenses/MIT MIT |
||
6 | */ |
||
7 | namespace BEAR\Package; |
||
8 | |||
9 | use BEAR\AppMeta\AbstractAppMeta; |
||
10 | use BEAR\Package\Provide\Error\VndErrorModule; |
||
11 | use BEAR\Package\Provide\Logger\PsrLoggerModule; |
||
12 | use BEAR\Package\Provide\Representation\CreatedResourceModule; |
||
13 | use BEAR\Package\Provide\Router\WebRouterModule; |
||
14 | use BEAR\QueryRepository\QueryRepositoryModule; |
||
15 | use BEAR\Streamer\StreamModule; |
||
16 | use BEAR\Sunday\Module\SundayModule; |
||
17 | use Ray\Di\AbstractModule; |
||
18 | |||
19 | class PackageModule extends AbstractModule |
||
20 | { |
||
21 | protected $appMeta; |
||
22 | |||
23 | 24 | public function __construct(AbstractAppMeta $appMeta = null) |
|
24 | { |
||
25 | 24 | unset($appMeta); // for BC |
|
26 | 24 | parent::__construct(); |
|
27 | 24 | } |
|
28 | |||
29 | /** |
||
30 | * {@inheritdoc} |
||
31 | */ |
||
32 | 24 | protected function configure() |
|
33 | { |
||
34 | 24 | $this->install(new QueryRepositoryModule); |
|
0 ignored issues
–
show
|
|||
35 | 24 | $this->install(new WebRouterModule); |
|
0 ignored issues
–
show
new \BEAR\Package\Provide\Router\WebRouterModule() is of type object<BEAR\Package\Prov...Router\WebRouterModule> , but the function expects a object<self> .
It seems like the type of the argument is not accepted by the function/method which you are calling. In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug. We suggest to add an explicit type cast like in the following example: function acceptsInteger($int) { }
$x = '123'; // string "123"
// Instead of
acceptsInteger($x);
// we recommend to use
acceptsInteger((integer) $x);
Loading history...
|
|||
36 | 24 | $this->install(new VndErrorModule); |
|
0 ignored issues
–
show
new \BEAR\Package\Provide\Error\VndErrorModule() is of type object<BEAR\Package\Provide\Error\VndErrorModule> , but the function expects a object<self> .
It seems like the type of the argument is not accepted by the function/method which you are calling. In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug. We suggest to add an explicit type cast like in the following example: function acceptsInteger($int) { }
$x = '123'; // string "123"
// Instead of
acceptsInteger($x);
// we recommend to use
acceptsInteger((integer) $x);
Loading history...
|
|||
37 | 24 | $this->install(new PsrLoggerModule); |
|
0 ignored issues
–
show
new \BEAR\Package\Provide\Logger\PsrLoggerModule() is of type object<BEAR\Package\Prov...Logger\PsrLoggerModule> , but the function expects a object<self> .
It seems like the type of the argument is not accepted by the function/method which you are calling. In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug. We suggest to add an explicit type cast like in the following example: function acceptsInteger($int) { }
$x = '123'; // string "123"
// Instead of
acceptsInteger($x);
// we recommend to use
acceptsInteger((integer) $x);
Loading history...
|
|||
38 | 24 | $this->install(new StreamModule); |
|
0 ignored issues
–
show
new \BEAR\Streamer\StreamModule() is of type object<BEAR\Streamer\StreamModule> , but the function expects a object<self> .
It seems like the type of the argument is not accepted by the function/method which you are calling. In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug. We suggest to add an explicit type cast like in the following example: function acceptsInteger($int) { }
$x = '123'; // string "123"
// Instead of
acceptsInteger($x);
// we recommend to use
acceptsInteger((integer) $x);
Loading history...
|
|||
39 | 24 | $this->install(new CreatedResourceModule); |
|
0 ignored issues
–
show
new \BEAR\Package\Provid...CreatedResourceModule() is of type object<BEAR\Package\Prov...\CreatedResourceModule> , but the function expects a object<self> .
It seems like the type of the argument is not accepted by the function/method which you are calling. In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug. We suggest to add an explicit type cast like in the following example: function acceptsInteger($int) { }
$x = '123'; // string "123"
// Instead of
acceptsInteger($x);
// we recommend to use
acceptsInteger((integer) $x);
Loading history...
|
|||
40 | 24 | $this->install(new SundayModule); |
|
0 ignored issues
–
show
new \BEAR\Sunday\Module\SundayModule() is of type object<BEAR\Sunday\Module\SundayModule> , but the function expects a object<self> .
It seems like the type of the argument is not accepted by the function/method which you are calling. In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug. We suggest to add an explicit type cast like in the following example: function acceptsInteger($int) { }
$x = '123'; // string "123"
// Instead of
acceptsInteger($x);
// we recommend to use
acceptsInteger((integer) $x);
Loading history...
|
|||
41 | 24 | } |
|
42 | } |
||
43 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: