Issues (6)

src/helpers.php (1 issue)

1
<?php
2
3
declare(strict_types=1);
4
5
namespace Noitran\RQL {
6
    use Noitran\RQL\Exceptions\RuntimeException;
7
    use Noitran\RQL\Services\RQLService;
8
9
    if (! \function_exists('rql')) {
10
        /**
11
         * Get default RQL service.
12
         *
13
         * @throws RuntimeException
14
         *
15
         * @return RQLService
16
         */
17
        function rql()
18
        {
19
            return app('rql');
0 ignored issues
show
Bug Best Practice introduced by
The expression return app('rql') also could return the type Illuminate\Contracts\Foundation\Application which is incompatible with the documented return type Noitran\RQL\Services\RQLService.
Loading history...
20
        }
21
    }
22
}
23