Skip to content

Commit

Permalink
Fixes issue in PermissionsRelation where getPermissionClass was retur…
Browse files Browse the repository at this point in the history
…ning model not interface
  • Loading branch information
mmltonge committed Feb 3, 2020
1 parent e969bc1 commit 811bbf3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Models/PermissionsRelation.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\Relation;
use Redsnapper\LaravelDoorman\Models\Contracts\Role;
use Redsnapper\LaravelDoorman\Models\Contracts\Permission;
use Redsnapper\LaravelDoorman\PermissionsRegistrar;

class PermissionsRelation extends Relation
Expand Down Expand Up @@ -160,7 +161,7 @@ public function match(array $users, Collection $results, $relation)
/**
* Build model dictionary keyed by the relation's foreign key.
*
* @param \Illuminate\Database\Eloquent\Collection $results
* @param Collection $results
* @return array
*/
protected function buildDictionary(Collection $results)
Expand Down

0 comments on commit 811bbf3

Please sign in to comment.