@@ -48,56 +48,56 @@ public function filter(QueryBuilder $query, $value): void
4848 ($ this ->filterClass )($ query ->getEloquentBuilder (), $ valueToFilter , $ this ->internalName );
4949 }
5050
51- public static function setFilterArrayValueDelimiter (string $ delimiter = null ): void
51+ public static function setFilterArrayValueDelimiter (? string $ delimiter = null ): void
5252 {
5353 if (isset ($ delimiter )) {
5454 QueryBuilderRequest::setFilterArrayValueDelimiter ($ delimiter );
5555 }
5656 }
5757
58- public static function exact (string $ name , ?string $ internalName = null , bool $ addRelationConstraint = true , string $ arrayValueDelimiter = null ): static
58+ public static function exact (string $ name , ?string $ internalName = null , bool $ addRelationConstraint = true , ? string $ arrayValueDelimiter = null ): static
5959 {
6060 static ::setFilterArrayValueDelimiter ($ arrayValueDelimiter );
6161
6262 return new static ($ name , new FiltersExact ($ addRelationConstraint ), $ internalName );
6363 }
6464
65- public static function partial (string $ name , $ internalName = null , bool $ addRelationConstraint = true , string $ arrayValueDelimiter = null ): static
65+ public static function partial (string $ name , $ internalName = null , bool $ addRelationConstraint = true , ? string $ arrayValueDelimiter = null ): static
6666 {
6767 static ::setFilterArrayValueDelimiter ($ arrayValueDelimiter );
6868
6969 return new static ($ name , new FiltersPartial ($ addRelationConstraint ), $ internalName );
7070 }
7171
72- public static function beginsWithStrict (string $ name , $ internalName = null , bool $ addRelationConstraint = true , string $ arrayValueDelimiter = null ): static
72+ public static function beginsWithStrict (string $ name , $ internalName = null , bool $ addRelationConstraint = true , ? string $ arrayValueDelimiter = null ): static
7373 {
7474 static ::setFilterArrayValueDelimiter ($ arrayValueDelimiter );
7575
7676 return new static ($ name , new FiltersBeginsWithStrict ($ addRelationConstraint ), $ internalName );
7777 }
7878
79- public static function endsWithStrict (string $ name , $ internalName = null , bool $ addRelationConstraint = true , string $ arrayValueDelimiter = null ): static
79+ public static function endsWithStrict (string $ name , $ internalName = null , bool $ addRelationConstraint = true , ? string $ arrayValueDelimiter = null ): static
8080 {
8181 static ::setFilterArrayValueDelimiter ($ arrayValueDelimiter );
8282
8383 return new static ($ name , new FiltersEndsWithStrict ($ addRelationConstraint ), $ internalName );
8484 }
8585
86- public static function belongsTo (string $ name , $ internalName = null , string $ arrayValueDelimiter = null ): static
86+ public static function belongsTo (string $ name , $ internalName = null , ? string $ arrayValueDelimiter = null ): static
8787 {
8888 static ::setFilterArrayValueDelimiter ($ arrayValueDelimiter );
8989
9090 return new static ($ name , new FiltersBelongsTo (), $ internalName );
9191 }
9292
93- public static function scope (string $ name , $ internalName = null , string $ arrayValueDelimiter = null ): static
93+ public static function scope (string $ name , $ internalName = null , ? string $ arrayValueDelimiter = null ): static
9494 {
9595 static ::setFilterArrayValueDelimiter ($ arrayValueDelimiter );
9696
9797 return new static ($ name , new FiltersScope (), $ internalName );
9898 }
9999
100- public static function callback (string $ name , $ callback , $ internalName = null , string $ arrayValueDelimiter = null ): static
100+ public static function callback (string $ name , $ callback , $ internalName = null , ? string $ arrayValueDelimiter = null ): static
101101 {
102102 static ::setFilterArrayValueDelimiter ($ arrayValueDelimiter );
103103
@@ -109,18 +109,18 @@ public static function trashed(string $name = 'trashed', $internalName = null):
109109 return new static ($ name , new FiltersTrashed (), $ internalName );
110110 }
111111
112- public static function custom (string $ name , Filter $ filterClass , $ internalName = null , string $ arrayValueDelimiter = null ): static
112+ public static function custom (string $ name , Filter $ filterClass , $ internalName = null , ? string $ arrayValueDelimiter = null ): static
113113 {
114114 static ::setFilterArrayValueDelimiter ($ arrayValueDelimiter );
115115
116116 return new static ($ name , $ filterClass , $ internalName );
117117 }
118118
119- public static function operator (string $ name , FilterOperator $ filterOperator , string $ boolean = 'and ' , ?string $ internalName = null , bool $ addRelationConstraint = true , string $ arrayValueDelimiter = null ): self
119+ public static function operator (string $ name , FilterOperator $ filterOperator , string $ boolean = 'and ' , ?string $ internalName = null , bool $ addRelationConstraint = true , ? string $ arrayValueDelimiter = null ): self
120120 {
121121 static ::setFilterArrayValueDelimiter ($ arrayValueDelimiter );
122122
123- return new static ($ name , new FiltersOperator ($ addRelationConstraint , $ filterOperator , $ boolean ), $ internalName, $ filterOperator );
123+ return new static ($ name , new FiltersOperator ($ addRelationConstraint , $ filterOperator , $ boolean ), $ internalName );
124124 }
125125
126126 public function getFilterClass (): Filter
0 commit comments