1 | <?php |
||||
2 | /** |
||||
3 | * This file is part of the O2System Framework package. |
||||
4 | * |
||||
5 | * For the full copyright and license information, please view the LICENSE |
||||
6 | * file that was distributed with this source code. |
||||
7 | * |
||||
8 | * @author Steeve Andrian Salim |
||||
9 | * @copyright Copyright (c) Steeve Andrian Salim |
||||
10 | */ |
||||
11 | |||||
12 | // ------------------------------------------------------------------------ |
||||
13 | |||||
14 | namespace O2System\Framework\Services; |
||||
15 | |||||
16 | // ------------------------------------------------------------------------ |
||||
17 | |||||
18 | use O2System\Kernel\DataStructures\Config; |
||||
19 | |||||
20 | /** |
||||
21 | * Class Logger |
||||
22 | * @package O2System\Framework\Services |
||||
23 | */ |
||||
24 | class Logger extends \O2System\Kernel\Services\Logger |
||||
25 | { |
||||
26 | /** |
||||
27 | * Logger::__construct |
||||
28 | */ |
||||
29 | public function __construct() |
||||
30 | { |
||||
31 | $config = config()->get('logger'); |
||||
0 ignored issues
–
show
|
|||||
32 | $config[ 'path' ] = PATH_CACHE . 'log' . DIRECTORY_SEPARATOR; |
||||
33 | |||||
34 | parent::__construct(new Config($config)); |
||||
0 ignored issues
–
show
It seems like
$config can also be of type false and null ; however, parameter $config of O2System\Kernel\DataStru...s\Config::__construct() does only seem to accept array , maybe add an additional type check?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||
35 | } |
||||
36 | } |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.