Skip to content

Commit

Permalink
Fixed incompatibility with somes scopes
Browse files Browse the repository at this point in the history
  • Loading branch information
maikealame authored Apr 26, 2019
1 parent 0e77ab0 commit 34d57ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AutoWhere.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function scopeAutoWhere($query, $options = [])
if( $this->forceDeleting !== null ){ // is using soft delete
if( empty( array_filter( // not using withTrashed()
$query->removedScopes(),
function($var,$key){
function($var,$key = null){
return stristr( $var, "SoftDelet" ) ? $key : false;
}
) ) ) {
Expand Down

0 comments on commit 34d57ce

Please sign in to comment.