1 | <?php |
||||
2 | |||||
3 | namespace SMartins\JsonHandler; |
||||
4 | |||||
5 | use Illuminate\Support\ServiceProvider; |
||||
0 ignored issues
–
show
|
|||||
6 | |||||
7 | class JsonHandlerServiceProvider extends ServiceProvider |
||||
8 | { |
||||
9 | public function boot() |
||||
10 | { |
||||
11 | $this->publishes([ |
||||
12 | $this->configPath() => config_path('json-exception-handler.php'), |
||||
0 ignored issues
–
show
The function
config_path was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||
13 | ]); |
||||
14 | |||||
15 | $this->loadTranslationsFrom(__DIR__.'/resources/lang', 'exception'); |
||||
16 | |||||
17 | $this->publishes([ |
||||
18 | __DIR__.'/resources/lang' => resource_path('lang/vendor/exception'), |
||||
0 ignored issues
–
show
The function
resource_path was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||
19 | ]); |
||||
20 | } |
||||
21 | |||||
22 | public function register() |
||||
23 | { |
||||
24 | $this->mergeConfigFrom($this->configPath(), 'json-exception-handler'); |
||||
25 | } |
||||
26 | |||||
27 | public function configPath() |
||||
28 | { |
||||
29 | return __DIR__.'/config/json-exception-handler.php'; |
||||
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