"README.md" did not exist on "2c0a63e8438da5d3ecd3b007c668008692389ecd"
Issue #3313342: [PHP 8.1] Deprecated function: strpos(): Passing null to parameter #1 LayoutBuilderUiCacheContext.php on line 28
3 unresolved threads
Merge request reports
Activity
added 25 commits
-
00d13093...9255262c - 24 commits from branch
project:10.0.x
- a90a34a8 - Fixed Deprecated function: strpos(): Passing null.
-
00d13093...9255262c - 24 commits from branch
added 21 commits
- b26be9b9 - Issue #2664292 by harings_rob, xjm, Spokje, claudiu.cristea, bircher,...
- 76775f34 - Issue #3330673 by mondrake, Spokje, catch: Reduce significantly PHPStan...
- 27344a65 - Issue #3330305 by Spokje, mondrake: Fix failing "updated deps" test-runs by...
- 92fae141 - Issue #3095099 by Chi, andypost, alexpott, arpad.rozsa, xjm, catch: Update Twig to 3.5.0
- 27017e95 - Drupal 10.0.1
- e177d0fe - Back to dev.
- 14b076af - Issue #3304378 by bnjmnm: Core FunctionalJavascript tests should not depend on Classy or Starterkit
- 4a3acf58 - Issue #3310555 by jonathan1055, smustgrave: htmlspecialchars(): Passing null...
- 5e9df39f - Issue #3326371 by Spokje: [10.0.x backport] Fix PHPStan L1 error "Anonymous...
- 4f7ecd1b - Issue #3326778 by Graber, Wim Leers, Web-Beest, catch: TypeError:...
- caae8aa7 - Issue #3331438 by acbramley, mstrelan: Incorrect return type in LinkBase::getDefaultLabel()
- 16fc830c - Issue #3327853 by Spokje, fabiansierra5191, xjm, longwave, bbrala, rpayanm:...
- fbb698ad - Issue #3324901 by alexpott: TestSettingSummariesContentType has a few problems
- 944d6967 - Issue #3244737 by longwave, droplet, andypost, joshua1234511, Satyajit1990,...
- 5118c999 - Issue #3331818 by xjm, Spokje: commit-code-check.sh gives unclear output when...
- 332250f7 - Issue #3331900 by noorulshameera, anmolgoyal74: Remove unused variable...
- e515ceb0 - Issue #3323353 by Lendude, ameymudras, VitaliyB98, xjm, andypost: View combine...
- e5dab8d5 - Issue #3327974 by Lendude, ExTexan: The $entity_type property is protected, so...
- 6eff7f22 - Issue #3226334 by albertosilva, pauger, xjm, smustgrave, K3vin_nl, krisahil:...
- 2eb690b4 - Issue #3219472 by quietone, Abhishek_Singh, karishmaamin, longwave,...
- 238b90e4 - Issue #992540 by valthebald, ndobromirov, jec006, kid_icarus, rickmanelius,...
Toggle commit listadded 22 commits
-
238b90e4...f7b910aa - 21 commits from branch
project:10.0.x
- a5b5e31e - Merge remote-tracking branch 'origin/10.0.x' into 3313342-
-
238b90e4...f7b910aa - 21 commits from branch
25 25 * {@inheritdoc} 26 26 */ 27 27 public function getContext() { 28 return 'is_layout_builder_ui.' . (int) (strpos($this->routeMatch->getRouteName(), 'layout_builder.') !== 0); 28 if (!empty($this->routeMatch->getRouteName()) && strpos($this->routeMatch->getRouteName(), 'layout_builder.') === 0) { changed this line in version 9 of the diff
25 25 * {@inheritdoc} 26 26 */ 27 27 public function getContext() { 28 return 'is_layout_builder_ui.' . (int) (strpos($this->routeMatch->getRouteName(), 'layout_builder.') !== 0); 28 if (!empty($this->routeMatch->getRouteName()) && strpos($this->routeMatch->getRouteName(), 'layout_builder.') === 0) { 29 return 'is_layout_builder_ui.1'; 30 } 31 return 'is_layout_builder_ui.0'; @xjm : Can you pls give clarity on this comment.
Do you mean to say that the return statements need to be reversed like below?
if (!empty($this->routeMatch->getRouteName()) && str_starts_with($this->routeMatch->getRouteName(), 'layout_builder.')) { return 'is_layout_builder_ui.0'; } return 'is_layout_builder_ui.1';
158 158 // If the entity is displayed within a Layout Builder block and the current 159 159 // route is in the Layout Builder UI, then remove all contextual link 160 160 // placeholders. 161 if ($display instanceof LayoutBuilderEntityViewDisplay && strpos($route_name, 'layout_builder.') === 0) { 161 if ($display instanceof LayoutBuilderEntityViewDisplay && !empty($route_name) && strpos($route_name, 'layout_builder.') === 0) { changed this line in version 9 of the diff
Please register or sign in to reply