On page /admin/commerce/config/billing-schedules/add:

Deprecated function: assert(): Calling assert() with a string argument is deprecated in Drupal\commerce\Form\CommercePluginEntityFormBase->protectPluginIdElement() (line 27 of modules/contrib/commerce/src/Form/CommercePluginEntityFormBase.php).
Drupal\commerce\Form\CommercePluginEntityFormBase->protectPluginIdElement(Array) (Line: 213)
Drupal\commerce_recurring\Form\BillingScheduleForm->form(Array, Object) (Line: 117)
Drupal\Core\Entity\EntityForm->buildForm(Array, Object)
call_user_func_array(Array, Array) (Line: 518)
Drupal\Core\Form\FormBuilder->retrieveForm('commerce_billing_schedule_add_form', Object) (Line: 275)
Drupal\Core\Form\FormBuilder->buildForm('commerce_billing_schedule_add_form', Object) (Line: 93)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 582)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 151)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 68)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 99)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 78)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 52)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 669)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

Comments

super_romeo created an issue. See original summary.

bojanz’s picture

We need to resync the code with core, remove the quotes around the assertion check.

  • bojanz committed 8e7333f on 8.x-2.x
    Issue #3007326 by bojanz: Deprecated function: assert(): Calling assert...
bojanz’s picture

Status: Active » Fixed

Thanks for reporting this.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.