biiiiiigmonster /
hasin
| 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
|
|||
| 20 | // Eloquent\Relation mixin, support for the bottom layer of hasin. |
||
| 21 | Relation::mixin(new RelationMixin()); |
||
| 22 | } |
||
| 23 | } |
||
| 24 |
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.