fix validator import (#4094)

This commit is contained in:
Boy132 2022-05-30 16:24:59 +02:00 committed by GitHub
parent 8cf1311b84
commit 025e1a21ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,8 +4,8 @@ namespace Pterodactyl\Http\Requests\Api\Application\Servers;
use Pterodactyl\Models\Server; use Pterodactyl\Models\Server;
use Illuminate\Validation\Rule; use Illuminate\Validation\Rule;
use Illuminate\Validation\Validator;
use Pterodactyl\Services\Acl\Api\AdminAcl; use Pterodactyl\Services\Acl\Api\AdminAcl;
use Illuminate\Contracts\Validation\Validator;
use Pterodactyl\Models\Objects\DeploymentObject; use Pterodactyl\Models\Objects\DeploymentObject;
use Pterodactyl\Http\Requests\Api\Application\ApplicationApiRequest; use Pterodactyl\Http\Requests\Api\Application\ApplicationApiRequest;
@ -108,9 +108,9 @@ class StoreServerRequest extends ApplicationApiRequest
/* /*
* Run validation after the rules above have been applied. * Run validation after the rules above have been applied.
* *
* @param \Illuminate\Contracts\Validation\Validator $validator * @param \Illuminate\Validation\Validator $validator
*/ */
public function withValidator(Validator $validator) public function withValidator(Validator $validator): void
{ {
$validator->sometimes('allocation.default', [ $validator->sometimes('allocation.default', [
'required', 'integer', 'bail', 'required', 'integer', 'bail',