74414[BUGFIX] Prevent undefined array key warnings in PageRenderer
Commit message
Review
-
Code review CR +2 Done
- Oli Bartsch +2
- Oliver Klee +1
- Stefan Bürk +1
- Simon Schaufelberger +1
-
Verified V +2 Done
- Oli Bartsch +2
- Stefan Bürk +1
- Simon Schaufelberger +1
- core-ci +1 CI
Issues 1
Files 1
Review log 1315
-
Oli Bartsch uploaded patch set 1 04/25/22, 22:39
-
Oli Bartsch rebased onto patch set 2 04/25/22, 22:39
-
core-ci voted on patch set 1 V +1 04/25/22, 22:53 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/26436
-
core-ci voted on patch set 2 V +1 04/25/22, 22:54 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/26437
-
Simon Schaufelberger commented on patch set 2 CR -1 04/26/22, 00:08
-
Oli Bartsch commented on patch set 2 04/26/22, 00:16
PageRenderer.php:2213ReplyBoth options will be evaluated to false and therefore fall back to '|'. false makes this more clear and easier to read. It‘s furthermore consistent with the other places in this class, where the same check is in place. So Short answer: No, using false is intended here. -
Simon Schaufelberger voted on patch set 2 V +1 CR +1 04/26/22, 09:29
-
Oliver Klee commented on patch set 2 04/26/22, 10:33
PageRenderer.php:2213ReplyI find it hard to wrap my head around this nested ?? ?: construct. I propose using a local variable and splitting this line up into two statements. -
Oliver Klee commented on patch set 2 04/26/22, 10:45
PageRenderer.php:2757Ditto. I propose moving the title to a local variable (which will also reduce duplication). -
Oliver Klee commented on patch set 2 04/26/22, 10:59
@Oliver Should I take care of the changes? -
Oli Bartsch commented on patch set 2 04/26/22, 11:36
Reply
I agree on those changes but would prefer to do them in a separate patch. As mentioned in my other comment, the exact same code construct is used multiple times in this class. For consistency reasons, we should then adjust all those places accordingly.PageRenderer.php:2757ReplyAgree, but for the mentioned reasons, let's do this in a separate patch. -
Oliver Klee commented on patch set 2 CR +1 04/26/22, 11:43
Reply
AckPageRenderer.php:2757ReplyAck -
Stefan Bürk voted on patch set 2 V +1 CR +1 04/26/22, 17:46
-
Oli Bartsch voted on patch set 2 V +2 CR +2 04/26/22, 18:20
-
Oli Bartsch merged patch set 3 04/26/22, 18:20
PageRenderer.php:2213