Skip to content

Commit 8cf98f5

Browse files
authored
Replace stub with bootstrapFiles for Eloquent class alias (#32)
1 parent 4a01f27 commit 8cf98f5

3 files changed

Lines changed: 7 additions & 5 deletions

File tree

bootstrap/eloquent.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?php
2+
3+
if (!class_exists('Eloquent')) {
4+
class_alias(\Illuminate\Database\Eloquent\Model::class, 'Eloquent');
5+
}

extension.neon

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ includes:
44
parameters:
55
level: 8
66
tmpDir: .phpstan
7-
stubFiles:
8-
- stubs/Eloquent.stub
7+
bootstrapFiles:
8+
- bootstrap/eloquent.php

stubs/Eloquent.stub

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)