Calling assert() with a string argument is deprecated in Drupal\refreshless\RefreshlessPageState->isSensitiveContext() (line 114 of modules/contrib/refreshless/src/RefreshlessPageState.php)

Created on 17 November 2019, about 5 years ago
Updated 7 October 2023, about 1 year ago

Hello!

After installing alpha-3 and applying patch ( https://www.drupal.org/files/issues/refreshless-alpha3-core-patch-269571... ):

Deprecated function: assert(): Calling assert() with a string argument is deprecated in Drupal\refreshless\RefreshlessPageState->isSensitiveContext() (line 114 of modules/contrib/refreshless/src/RefreshlessPageState.php).
Drupal\refreshless\RefreshlessPageState->isSensitiveContext('session.exists') (Line: 131)
Drupal\refreshless\RefreshlessPageState->getSensitiveContextHashes(Array) (Line: 53)
Drupal\refreshless\RefreshlessPageState->build(Object) (Line: 72)
Drupal\refreshless\EventSubscriber\HtmlResponseSubscriber->initializeRefreshlessPageState(Object) (Line: 41)
Drupal\refreshless\EventSubscriber\HtmlResponseSubscriber->onRespond(Object, 'kernel.response', Object)
call_user_func(Array, Object, 'kernel.response', Object) (Line: 111)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch('kernel.response', Object) (Line: 191)
Symfony\Component\HttpKernel\HttpKernel->filterResponse(Object, Object, 1) (Line: 173)
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: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
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: 693)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

best regards,

savage

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇧🇾Belarus savage1974

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024