mirror of
				https://github.com/pelican-dev/panel.git
				synced 2025-10-31 05:46:51 +01:00 
			
		
		
		
	Resolve this for now
This commit is contained in:
		
							parent
							
								
									3d8847a508
								
							
						
					
					
						commit
						1aa51d15f0
					
				| @ -81,9 +81,9 @@ class AppServiceProvider extends ServiceProvider | |||||||
| 
 | 
 | ||||||
|         // Assign custom validation rules
 |         // Assign custom validation rules
 | ||||||
|         Validator::extend('port', function ($attribute, $value, $parameters, $validator) { |         Validator::extend('port', function ($attribute, $value, $parameters, $validator) { | ||||||
|             $rule = InvokableValidationRule::make(new Port(...$parameters)); |             $rule = InvokableValidationRule::make(new Port()); | ||||||
|             $rule->setValidator($validator); |             $rule->setValidator($validator); // @phpstan-ignore-line
 | ||||||
|             $rule->setData($validator->getData()); |             $rule->setData($validator->getData()); // @phpstan-ignore-line
 | ||||||
| 
 | 
 | ||||||
|             $result = $rule->passes($attribute, $value); |             $result = $rule->passes($attribute, $value); | ||||||
|             if (!$result) { |             if (!$result) { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Lance Pioch
						Lance Pioch