Issues (121)

src/HasinServiceProvider.php (1 issue)

Labels
Severity
1
<?php
2
3
namespace BiiiiiigMonster\Hasin;
4
5
use BiiiiiigMonster\Hasin\Database\Eloquent\BuilderMixin;
6
use BiiiiiigMonster\Hasin\Database\Eloquent\RelationMixin;
7
use Illuminate\Database\Eloquent\Builder;
8
use Illuminate\Database\Eloquent\Relations\Relation;
9
use Illuminate\Support\ServiceProvider;
10
11
class HasinServiceProvider extends ServiceProvider
12
{
13
    /**
14
     * @throws \ReflectionException
15
     */
16
    public function register()
17
    {
18
        // Eloquent\Builder mixin, provides hasin series implementation.
19
        Builder::mixin(new BuilderMixin());
0 ignored issues
show
The method mixin() does not exist on Illuminate\Database\Eloquent\Builder. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

19
        Builder::/** @scrutinizer ignore-call */ 
20
                 mixin(new BuilderMixin());

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
20
        // Eloquent\Relation mixin, support for the bottom layer of hasin.
21
        Relation::mixin(new RelationMixin());
22
    }
23
}
24