From 34d57cef87932b52e8dcae74af1ef7e0582148e6 Mon Sep 17 00:00:00 2001 From: Maike Alame Date: Fri, 26 Apr 2019 10:52:14 -0300 Subject: [PATCH] Fixed incompatibility with somes scopes --- src/AutoWhere.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AutoWhere.php b/src/AutoWhere.php index 3caef90..14b44f1 100644 --- a/src/AutoWhere.php +++ b/src/AutoWhere.php @@ -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; } ) ) ) {