1 | <?php |
||
2 | |||
3 | namespace vasadibt\onesignal\resolver; |
||
4 | |||
5 | use Symfony\Component\OptionsResolver\OptionsResolver; |
||
6 | use yii\base\BaseObject; |
||
0 ignored issues
–
show
|
|||
7 | |||
8 | /** |
||
9 | * Class DeviceFocusResolver |
||
10 | * @package vasadibt\onesignal\resolver |
||
11 | */ |
||
12 | class DeviceFocusResolver extends BaseObject implements ResolverInterface |
||
13 | { |
||
14 | /** |
||
15 | * {@inheritdoc} |
||
16 | */ |
||
17 | public function resolve(array $data) |
||
18 | { |
||
19 | return (new OptionsResolver()) |
||
20 | ->setDefault('state', 'ping') |
||
21 | ->setAllowedTypes('state', 'string') |
||
22 | ->setRequired('active_time') |
||
23 | ->setAllowedTypes('active_time', 'int') |
||
24 | ->resolve($data); |
||
25 | } |
||
26 | } |
||
27 |
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:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths