Issues (5)

src/Executor.php (2 issues)

1
<?php
2
3
namespace DeGraciaMathieu\Nero;
4
5
class Executor {
6
7
    /**
8
     * handle the death
9
     * @param  string|null $message
10
     * @param  string $parameter
11
     * @param  string $file
12
     * @param  integer $line
13
     * @return exit
0 ignored issues
show
The type DeGraciaMathieu\Nero\exit 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...
14
     */
15
    public function send($message, $parameter, $file, $line)
16
    {
17
        exit(sprintf($message, $parameter, $file, $line));
0 ignored issues
show
Using exit here is not recommended.

In general, usage of exit should be done with care and only when running in a scripting context like a CLI script.

Loading history...
18
    }
19
}
20