Loading
fix: #3638604 Pass a provider in the Bootstrap layout deriver for PHP 8.5 (10.0.x)
Closes https://www.drupal.org/i/3638604
Backport of !121 (merged) (10.2.x) to 10.0.x, which Varbase 9.2.x and 9.1.x use. Same one-line change: pass 'provider' => 'varbase_layout_builder' in each derived LayoutDefinition, as Bootstrap Layout Builder's own deriver does. Without it, layout discovery calls moduleExists(NULL) and themeExists(NULL), which PHP 8.5 logs as "Using null as an array offset is deprecated".
On 10.2.x the change was checked on Drupal 11.4.12 with PHP 8.4.27, 8.5.12 and 8.6.0RC3: the deprecations are gone and nothing else changed. On 10.0.x the cherry-pick applies cleanly and the file passes php -l on PHP 8.5.
AI-Generated: Yes
Checkpoints:
- File an issue
- Addition/Change/Update/Fix
- Testing to ensure no regression
- Automated unit testing coverage
- Automated functional testing coverage
- UX/UI designer responsibilities
- Readability
- Accessibility
- Performance
- Security
- Developer Documentation
- User Guide Documentation
- Reviewed by human
- Code review by maintainers
- Full testing and approval
- Credit contributors
- Review with the product owner
- Release notes snippet
- Release
Edited by Rajab Natshah