From f61246f88476f680b458c758e65a2b7020280ec1 Mon Sep 17 00:00:00 2001 From: Raj Siva-Rajah <5361908+binaryfire@users.noreply.github.com> Date: Thu, 18 Dec 2025 15:08:03 +0000 Subject: [PATCH] fix: add missing Factory methods to Validator facade The Validator facade proxies to ValidationFactory but was missing the Factory interface methods in its docblock. This caused PHPStan errors when using Validator::make() despite it being the documented pattern. Other facades (Cache, Mail) correctly include their Factory methods. --- src/support/src/Facades/Validator.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/support/src/Facades/Validator.php b/src/support/src/Facades/Validator.php index 30a349475..2ae278623 100644 --- a/src/support/src/Facades/Validator.php +++ b/src/support/src/Facades/Validator.php @@ -7,6 +7,10 @@ use Hypervel\Validation\Contracts\Factory as FactoryContract; /** + * @method static \Hypervel\Validation\Validator make(array $data, array $rules, array $messages = [], array $attributes = []) + * @method static void extend(string $rule, \Closure|string $extension, string|null $message = null) + * @method static void extendImplicit(string $rule, \Closure|string $extension, string|null $message = null) + * @method static void replacer(string $rule, \Closure|string $replacer) * @method static array parseData(array $data) * @method static \Hypervel\Validation\Validator after(callable|array|string $callback) * @method static bool passes()