Closed (fixed)
Project:
GLightbox
Version:
1.0.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
6 Oct 2026 at 09:24 UTC
Updated:
6 Oct 2026 at 16:29 UTC
Jump to comment: Most recent
ActivationCheck::isActive() calls Request::get(), which is deprecated in Symfony 7.4 and removed in Symfony 8.
src/ActivationCheck.php with Symfony 7.4: it reports the deprecated call.isActive() with Symfony 8: it fails with an undefined-method error.Read the request parameter bags directly, preserving the existing precedence: attributes, query parameters, then POST parameters. Only the literal value no disables GLightbox.
Add tests for flag values and precedence. Local tests pass on Drupal 10 and 11; a separate Symfony 8 runtime check also passes.
Review and merge the MR.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
nick hope commentedComment #6
levmyshkinThanks @nick hope! Reviewed and merged into 1.0.x.
Review notes:
Request::get(): attributes first (aNULLvalue counts as present), then query, then POST. It reads values viaall()[$key], so array values don't hit theInputBag::get()exception.Request::get()implementation also gives 14/14, which confirms there is no behavior change.Request::get()triggers a deprecation in Symfony 7.4. There are no otherRequest::get()calls in the module.Committed as 07a6a01.
Comment #8
levmyshkin