65064[TASK] Use stdWrapValue where possible (part 2)
Commit message
Review
-
Code review CR +2 Done
- Anja Leichsenring +2
- Christian Kuhn +1
- Andreas Kienast +1
-
Verified V +2 Done
- Anja Leichsenring +2
- Christian Kuhn +1
- Andreas Kienast +1
- TYPO3com +1 CI
Issues 2
Files 11
- typo3/sysext/extbase/Classes/Configuration/AbstractConfigurationManager.php+1 −1
- typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php9+82 −145
- typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php+5 −13
- typo3/sysext/frontend/Classes/DataProcessing/LanguageMenuProcessor.php+3 −9
- typo3/sysext/frontend/Classes/DataProcessing/MenuProcessor.php+1 −1
- typo3/sysext/frontend/Classes/Http/RequestHandler.php+3 −7
- typo3/sysext/frontend/Classes/Imaging/GifBuilder.php+21 −35
- typo3/sysext/frontend/Classes/Typolink/PageLinkBuilder.php+3 −5
- typo3/sysext/frontend/Tests/Unit/ContentObject/ContentObjectRendererTest.php+12 −1
- typo3/sysext/frontend/Tests/Unit/Controller/TypoScriptFrontendControllerTest.php+8 −0
- typo3/sysext/indexed_search/Classes/Controller/SearchController.php+10 −10
Review log 2837
Show 812 earlier messages
-
Nikita Hovratov uploaded patch set 1 07/21/20, 14:27
-
TYPO3com voted on patch set 1 V -1 07/21/20, 14:39 Completed build in 11m 10s on Tue, 21 Jul, 02:39 PM Test Summary: 69 of 73396 failed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-4180
-
Nikita Hovratov uploaded patch set 2 07/21/20, 16:51
-
TYPO3com voted on patch set 2 V -1 07/21/20, 17:02 Completed build in 11m 19s on Tue, 21 Jul, 05:02 PM Test Summary: 57 of 73396 failed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-4182
-
Nikita Hovratov uploaded patch set 3 07/21/20, 18:15
-
TYPO3com voted on patch set 3 V -1 07/21/20, 18:26 Completed build in 11m 17s on Tue, 21 Jul, 06:26 PM Test Summary: 72909 passed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-4184
-
Nikita Hovratov uploaded patch set 4 07/21/20, 18:29
-
TYPO3com voted on patch set 4 V +1 07/21/20, 18:40 Completed build in 10m 50s on Tue, 21 Jul, 06:40 PM Test Summary: 72909 passed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-4185
-
Jörg Bösche commented on patch set 4 CR -1 09/02/20, 08:26
-
Nikita Hovratov commented on patch set 4 09/02/20, 12:10
ContentObjectRenderer.php:3239Reply UnresolvedYes, you are right. Maybe change the return type to mixed, so it can be anything? Bool, int, float etc. -
Jörg Bösche commented on patch set 4 09/02/20, 12:43
> Patch Set 4: > > (1 comment) Yes, unfortunately it looks as if mixed is the correct value, but we should mention the three return values in the annotation. Please check, if the core has boolean parameters to this method. If so, just add the return types. It is better to handle, if you see that a method can return type of string, null, int, bool instead of "mixed". -
Nikita Hovratov uploaded patch set 5 09/02/20, 12:56
-
TYPO3com voted on patch set 5 V +1 09/02/20, 13:07 Completed build in 10m 52s on Wed, 2 Sep, 01:07 PM Test Summary: 73164 passed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-5142
-
Anja Leichsenring updated the commit message in patch set 6 09/02/20, 18:11
-
Anja Leichsenring commented on patch set 6 V +1 CR +1 09/02/20, 18:13
I hope my +1 on verify is not premature, because I am not overly confident my instance uses all the changed methods and looked at all the consuming places. Still, reads quite straight forward. -
TYPO3com voted on patch set 6 V +1 09/02/20, 18:23 Completed build in 11m 41s on Wed, 2 Sep, 06:23 PM Test Summary: 73182 passed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-5151
-
Jörg Bösche voted on patch set 6 V +1 CR +1 09/03/20, 09:17
-
Christian Kuhn commented on patch set 6 09/03/20, 19:43
Thanks for this patch! It makes a lot of code better readable. I'm only asking if a unit test for the change in the stdWrapValue() method could be do-able, to reflect and show the change happening there. Do you think that is possible without too much hassle, if so, we should do it. If it becomes too complicated, I could live without, though. Other than that, I'd be ready for merge.ContentObjectRenderer.php:1323Unresolvedthis change would be worth a unit test, or is it hard to test for? -
Nikita Hovratov uploaded patch set 7 09/04/20, 07:43
-
TYPO3com voted on patch set 7 V +1 09/04/20, 07:59 Completed build in 15m 37s on Fri, 4 Sep, 07:59 AM Test Summary: 73206 passed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-5210
-
Nikita Hovratov commented on patch set 7 09/04/20, 08:00
> Patch Set 6: > > (1 comment) > > Thanks for this patch! It makes a lot of code better readable. > I'm only asking if a unit test for the change in the stdWrapValue() method could be do-able, to reflect and show the change happening there. Do you think that is possible without too much hassle, if so, we should do it. If it becomes too complicated, I could live without, though. > Other than that, I'd be ready for merge. Thanks! I added a unit test for this specific case. -
Nikita Hovratov uploaded patch set 8 09/04/20, 08:09
-
TYPO3com voted on patch set 8 V +1 09/04/20, 08:21 Completed build in 11m 50s on Fri, 4 Sep, 08:21 AM Test Summary: 73206 passed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-5213
-
Alexander Schnitzler commented on patch set 8 09/04/20, 10:27
ContentObjectRenderer.php:1307Is it really necessary to introduce a second possible type here? -
Christian Kuhn commented on patch set 8 09/04/20, 12:05
ContentObjectRenderer.php:1307ReplyHmm, it's already possible to feed stdWrapValue() with an int as defaultValue and stdwrap.intval also makes stdwrap() itself return an int (I guess). So, this annotation change is just there to state this fact, I'd say. -
Christian Kuhn voted on patch set 8 V +1 CR +1 09/04/20, 14:20
-
Alexander Schnitzler commented on patch set 8 09/04/20, 14:29
ContentObjectRenderer.php:1307Reply UnresolvedOk, I always lived under the impression that in typoscript we don't really have other types than array, strings and null and that even integers are represented by numeric strings. -
Andreas Kienast commented on patch set 8 09/05/20, 08:47
ContentObjectRenderer.php:1067UnresolvedIsn't this if() superfluous now? If I read the code correctly, basically the same is already in stdWrapValue(). -
Andreas Kienast uploaded patch set 9 09/05/20, 08:49
-
Andreas Kienast voted on patch set 9 V +1 CR +1 09/05/20, 08:49
-
TYPO3com voted on patch set 9 V +1 09/05/20, 09:06 Completed build in 16m 54s on Sat, 5 Sep, 09:06 AM Test Summary: 73212 passed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-5259
-
Christian Kuhn voted on patch set 9 V +1 CR +1 09/05/20, 10:41
-
Anja Leichsenring voted on patch set 9 V +2 CR +2 09/05/20, 10:45
-
Anja Leichsenring merged patch set 10 09/05/20, 10:45
-
Benni Mack commented on patch set 10 09/05/20, 15:35
ContentObjectRenderer.php:1042this now breaks my frontend, as I have a setup where $conf is null instead of an array. I suggest to adapt stdWrapValue(..., ?array $conf...) with a nullable second argument? -
Nikita Hovratov commented on patch set 10 09/05/20, 16:49
ContentObjectRenderer.php:1042Reply UnresolvedThis might be good a solution, possibly there are other setups with a similar issue. In a perfect world conf would be always loaded with a default value. This is one of the things i am trying to accomplish with the ConfigurationProcessor. -
Georg Ringer commented on patch set 10 10/07/21, 18:36
regression fixed with https://review.typo3.org/c/Packages/TYPO3.CMS/+/71497
ContentObjectRenderer.php:3239