Skip to content
Snippets Groups Projects

Improved assertion in #lazy_builder: loop to assert params individually.

Open Cesar Morua requested to merge issue/drupal-3455746:3455746-a-lazybuilder-callbacks into 11.x
All threads resolved!

Closes #3455746

Optimized assertion error handling in #lazy_builder callback. Replaced assertion that used count() and array_filter() methods with the array_walk function to assert each parameter individually. This refactoring enhances the clarity of the assertion error by specifying the problematic parameter when encountered.

Edited by Cesar Morua

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Joachim Noreiko
  • Joachim Noreiko
  • Joachim Noreiko
  • Cesar Morua added 1 commit

    added 1 commit

    • 53ae54af - Refactored assertions in #lazy_builder callback for precise error reports.

    Compare with previous version

  • Cesar Morua resolved all threads

    resolved all threads

  • @joachim I have addressed all the requested changes; when you have a minute, I would appreciate it if you could review the code again.

    Kind regards!

  • Please register or sign in to reply
    Loading