1 | <?php |
||
2 | |||
3 | namespace EasyPanel\Parsers\HTMLInputs; |
||
4 | |||
5 | use \Exception; |
||
0 ignored issues
–
show
|
|||
6 | |||
7 | class Select extends BaseInput |
||
8 | { |
||
9 | protected $stub = 'select.stub'; |
||
10 | |||
11 | public function dataProvider($array) |
||
12 | { |
||
13 | $this->stub = 'select-provider.stub'; |
||
14 | |||
15 | [$class, $method] = $array; |
||
16 | |||
17 | if (! class_exists($class)){ |
||
18 | throw new Exception("Class {$class} doesn't exist."); |
||
19 | } |
||
20 | |||
21 | $method = $method ?: 'handle'; |
||
22 | |||
23 | if (! method_exists($class, $method)){ |
||
24 | throw new Exception("Method {$method} doesn't exist on {$class} class."); |
||
25 | } |
||
26 | |||
27 | $this->provider = "\\{$class}::{$method}()"; |
||
28 | |||
29 | return $this; |
||
30 | } |
||
31 | } |
||
32 |
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