We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67ea544 commit 9b9fe7aCopy full SHA for 9b9fe7a
src/Traits/ScopedValidatorsTrait.php
@@ -668,7 +668,9 @@ public static function isCheckFile(string $name): bool
668
*/
669
public static function isCheckRequired(string $name, array $args = []): bool
670
{
671
- $name = $name === 'each' ? (strval($args[0] ?? '')) : $name;
+ // the $arg.0 is validator name.
672
+ $name = $name === 'each' ? ((string)($args[0] ?? '')) : $name;
673
+
674
return 0 === strpos($name, 'required');
675
}
676
0 commit comments