Issues (7)

tests/CreatesApplication.php (1 issue)

Labels
Severity
1
<?php
2
3
namespace Alive2212\LaravelQueryHelperTest;
4
5
6
//use Illuminate\Contracts\Console\Kernel;
7
8
use Illuminate\Contracts\Console\Kernel;
9
10
trait CreatesApplication
11
{
12
    /**
13
     * Creates the application.
14
     *
15
     * @return \Illuminate\Foundation\Application
0 ignored issues
show
The type Illuminate\Foundation\Application 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...
16
     */
17
    public function createApplication()
18
    {
19
        $app = require __DIR__ . '/../../../../bootstrap/app.php';
20
//        $kernel = new Kernel();
21
//        dd($kernel);
22
        $app->make(Kernel::class)->bootstrap();
23
24
        return $app;
25
    }
26
}
27