Exceptions
Exception
Symfony\Component\Validator\Exception\ InvalidArgumentException
in
vendor/symfony/validator/Constraints/NotBlank.php
(line 44)
* @param string[]|null $groups*/public function __construct(?array $options = null, ?string $message = null, ?bool $allowNull = null, ?callable $normalizer = null, ?array $groups = null, mixed $payload = null){if (null !== $options) {throw new InvalidArgumentException(\sprintf('Passing an array of options to configure the "%s" constraint is no longer supported.', static::class));}parent::__construct(null, $groups, $payload);$this->message = $message ?? $this->message;
'placeholder' => 'form.phone.placeholder','autocomplete' => 'tel','class' => 'form-control form-control-lg',],'constraints' => [new NotBlank(['message' => 'validation.phone.not_blank',]),new Regex(['pattern' => '/^\+[1-9]\d{1,14}$/','message' => 'validation.phone.invalid_format',
in
vendor/symfony/form/ResolvedFormType.php
->
buildForm
(line 100)
public function buildForm(FormBuilderInterface $builder, array $options): void{$this->parent?->buildForm($builder, $options);$this->innerType->buildForm($builder, $options);foreach ($this->typeExtensions as $extension) {$extension->buildForm($builder, $options);}}
in
vendor/symfony/form/Extension/DataCollector/Proxy/ResolvedTypeDataCollectorProxy.php
->
buildForm
(line 73)
return $this->proxiedType->createView($form, $parent);}public function buildForm(FormBuilderInterface $builder, array $options): void{$this->proxiedType->buildForm($builder, $options);}public function buildView(FormView $view, FormInterface $form, array $options): void{$this->proxiedType->buildView($view, $form, $options);
in
vendor/symfony/form/FormFactory.php
->
buildForm
(line 75)
$builder->setInitialOptions($options);}// Explicitly call buildForm() in order to be able to override either// createBuilder() or buildForm() in the resolved form type$type->buildForm($builder, $builder->getOptions());return $builder;}public function createBuilderForProperty(string $class, string $property, mixed $data = null, array $options = []): FormBuilderInterface
in
vendor/symfony/form/FormFactory.php
->
createNamedBuilder
(line 53)
/*** @return ($type is class-string<FormFlowTypeInterface> ? FormFlowBuilderInterface : FormBuilderInterface)*/public function createBuilder(string $type = FormType::class, mixed $data = null, array $options = []): FormBuilderInterface{return $this->createNamedBuilder($this->registry->getType($type)->getBlockPrefix(), $type, $data, $options);}/*** @return ($type is class-string<FormFlowTypeInterface> ? FormFlowBuilderInterface : FormBuilderInterface)*/
in
vendor/symfony/form/FormFactory.php
->
createBuilder
(line 32)
/*** @return ($type is class-string<FormFlowTypeInterface> ? FormFlowInterface : FormInterface)*/public function create(string $type = FormType::class, mixed $data = null, array $options = []): FormInterface{return $this->createBuilder($type, $data, $options)->getForm();}/*** @return ($type is class-string<FormFlowTypeInterface> ? FormFlowInterface : FormInterface)*/
in
vendor/symfony/framework-bundle/Controller/AbstractController.php
->
create
(line 354)
** @return ($type is class-string<FormFlowTypeInterface> ? FormFlowInterface : FormInterface)*/protected function createForm(string $type, mixed $data = null, array $options = []): FormInterface{return $this->container->get('form.factory')->create($type, $data, $options);}/*** Creates and returns a form builder instance.*/
// Already logged in? Redirect to dashboardif ($this->getUser()) {return $this->redirectToUserDashboard($userType, $request->getLocale());}$form = $this->createForm(PhoneLoginRequestFormType::class);$form->handleRequest($request);if ($form->isSubmitted() && $form->isValid()) {$phone = $form->get('phone')->getData();
in
vendor/symfony/http-kernel/HttpKernel.php
->
request
(line 183)
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);$controller = $event->getController();$arguments = $event->getArguments();// call controller$response = $controller(...$arguments);// viewif (!$response instanceof Response) {$event = new ViewEvent($this, $request, $type, $response, $event);$this->dispatcher->dispatch($event, KernelEvents::VIEW);
in
vendor/symfony/http-kernel/HttpKernel.php
->
handleRaw
(line 76)
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());$this->requestStack->push($request);$response = null;try {return $response = $this->handleRaw($request, $type);} catch (\Throwable $e) {if ($e instanceof \Error && !$this->handleAllThrowables) {throw $e;}
in
vendor/symfony/http-kernel/Kernel.php
->
handle
(line 191)
if (!$this->handlingHttpCache) {$this->resetServices = true;}try {return $this->getHttpKernel()->handle($request, $type, $catch);} finally {--$this->requestStackSize;}}
in
vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php
->
handle
(line 35)
) {}public function run(): int{$response = $this->kernel->handle($this->request);if (Kernel::VERSION_ID >= 60400) {$response->send(false);if (\function_exists('fastcgi_finish_request') && !$this->debug) {
in
vendor/autoload_runtime.php
->
run
(line 32)
$app = $app(...$args);exit($runtime->getRunner($app)->run());
require_once('/home/vujdv/domains/ekhopsychology_dev/vendor/autoload_runtime.php')
in
public_html/index.php
(line 5)
<?phpuse App\Kernel;require_once dirname(__DIR__).'/vendor/autoload_runtime.php';return function (array $context) {return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);};
Logs
| Level | Channel | Message |
|---|---|---|
| INFO 15:26:03 | app | All required environment variables are present |
| INFO 15:26:03 | request |
Matched route "_profiler". {
"route": "_profiler",
"route_parameters": {
"_route": "_profiler",
"_controller": "web_profiler.controller.profiler::panelAction",
"token": "299f66"
},
"request_uri": "https://dev.ekhopsychology.se/_profiler/299f66",
"method": "GET"
}
|
Stack Trace
|
InvalidArgumentException
|
|---|
Symfony\Component\Validator\Exception\InvalidArgumentException:
Passing an array of options to configure the "Symfony\Component\Validator\Constraints\NotBlank" constraint is no longer supported.
at vendor/symfony/validator/Constraints/NotBlank.php:44
at Symfony\Component\Validator\Constraints\NotBlank->__construct()
(src/Form/PhoneLoginRequestFormType.php:28)
at App\Form\PhoneLoginRequestFormType->buildForm()
(vendor/symfony/form/ResolvedFormType.php:100)
at Symfony\Component\Form\ResolvedFormType->buildForm()
(vendor/symfony/form/Extension/DataCollector/Proxy/ResolvedTypeDataCollectorProxy.php:73)
at Symfony\Component\Form\Extension\DataCollector\Proxy\ResolvedTypeDataCollectorProxy->buildForm()
(vendor/symfony/form/FormFactory.php:75)
at Symfony\Component\Form\FormFactory->createNamedBuilder()
(vendor/symfony/form/FormFactory.php:53)
at Symfony\Component\Form\FormFactory->createBuilder()
(vendor/symfony/form/FormFactory.php:32)
at Symfony\Component\Form\FormFactory->create()
(vendor/symfony/framework-bundle/Controller/AbstractController.php:354)
at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->createForm()
(src/Controller/PhoneLoginController.php:47)
at App\Controller\PhoneLoginController->request()
(vendor/symfony/http-kernel/HttpKernel.php:183)
at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
(vendor/symfony/http-kernel/HttpKernel.php:76)
at Symfony\Component\HttpKernel\HttpKernel->handle()
(vendor/symfony/http-kernel/Kernel.php:191)
at Symfony\Component\HttpKernel\Kernel->handle()
(vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35)
at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
(vendor/autoload_runtime.php:32)
at require_once('/home/vujdv/domains/ekhopsychology_dev/vendor/autoload_runtime.php')
(public_html/index.php:5)
|