Issues (7)

src/ManagerInterface.php (1 issue)

1
<?php
2
namespace RazonYang\Yii2\Setting;
3
4
interface ManagerInterface
5
{
6
    /**
7
     * Gets data by the given id.
8
     *
9
     * @param string      $id
10
     * @param null|string $defaultValue
11
     *
12
     * @return string|nul returns the data if exists, otherwise default value or null.
0 ignored issues
show
The type RazonYang\Yii2\Setting\nul 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...
13
     */
14
    public function get(string $id, ?string $defaultValue = null): ?string;
15
16
    /**
17
     * Gets all data.
18
     *
19
     * @return array
20
     */
21
    public function getAll(): array;
22
23
    /**
24
     * Flushs cache.
25
     *
26
     * @return bool
27
     */
28
    public function flushCache(): bool;
29
}
30