@@ -318,11 +318,11 @@ protected function processRules(
318318 }
319319
320320 /**
321- * @param array|null $data The array of data to validate, with `DBGroup`.
321+ * @param array $data The array of data to validate, with `DBGroup`.
322322 *
323323 * @return array|true The modified rules or true if we return early
324324 */
325- private function processIfExist (string $ field , array $ rules , ? array $ data )
325+ private function processIfExist (string $ field , array $ rules , array $ data )
326326 {
327327 if (in_array ('if_exist ' , $ rules , true )) {
328328 $ flattenedData = array_flatten_with_dots ($ data );
@@ -358,11 +358,11 @@ private function processIfExist(string $field, array $rules, ?array $data)
358358
359359 /**
360360 * @param array|string $value
361- * @param array|null $data The array of data to validate, with `DBGroup`.
361+ * @param array $data The array of data to validate, with `DBGroup`.
362362 *
363363 * @return array|true The modified rules or true if we return early
364364 */
365- private function processPermitEmpty ($ value , array $ rules , ? array $ data = null )
365+ private function processPermitEmpty ($ value , array $ rules , array $ data )
366366 {
367367 if (in_array ('permit_empty ' , $ rules , true )) {
368368 if (
0 commit comments