65463[TASK] Fix phpstan checkFunctionArgumentTypes errors in ext:install
Commit message
Review
-
Code review CR +2 Done
- Benni Mack +2
- Daniel Goerz +1
- Oliver Klee +1
- Jörg Bösche +1
-
Verified V +2 Done
- Benni Mack +2
- Daniel Goerz +1
- Jörg Bösche +1
- TYPO3com +1 CI
Issues 1
Files 18
- typo3/sysext/install/Classes/Command/LanguagePackCommand.php+2 −2
- typo3/sysext/install/Classes/Command/UpgradeWizardRunCommand.php+1 −0
- typo3/sysext/install/Classes/Controller/EnvironmentController.php+4 −4
- typo3/sysext/install/Classes/Controller/UpgradeController.php+10 −8
- typo3/sysext/install/Classes/FolderStructure/AbstractNode.php+1 −1
- typo3/sysext/install/Classes/FolderStructure/FileNode.php+1 −1
- typo3/sysext/install/Classes/Service/Session/FileSessionHandler.php+2 −2
- typo3/sysext/install/Classes/Service/CoreUpdateService.php+1 −1
- typo3/sysext/install/Classes/Service/EnableFileService.php+4 −2
- typo3/sysext/install/Classes/Service/SessionService.php2+2 −2
- typo3/sysext/install/Classes/Service/UpgradeWizardsService.php4+10 −5
- typo3/sysext/install/Classes/SystemEnvironment/ServerResponse/ServerResponseCheck.php+4 −4
- typo3/sysext/install/Classes/SystemEnvironment/Check.php+8 −7
- typo3/sysext/install/Classes/SystemEnvironment/SetupCheck.php+2 −2
- typo3/sysext/install/Classes/Updates/DatabaseRowsUpdateWizard.php+1 −0
- typo3/sysext/install/Classes/UpgradeAnalysis/DocumentationFile.php+8 −7
- typo3/sysext/install/Classes/ViewHelpers/Uri/ActionViewHelper.php+1 −1
- typo3/sysext/install/Classes/ViewHelpers/PhpInfoViewHelper.php+3 −3
Review log 1418
-
Alexander Schnitzler uploaded patch set 1 08/26/20, 13:18
-
Alexander Schnitzler wrote 08/26/20, 13:28
Topic set to phpstan -
TYPO3com voted on patch set 1 V -1 08/26/20, 14:16 Completed build in 57m 14s on Wed, 26 Aug, 02:16 PM Test Summary: 54 of 72919 failed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-4984
-
TYPO3com voted on patch set 1 V +1 08/27/20, 07:54 Completed build in 19h 32m 19s on Thu, 27 Aug, 07:54 AM Test Summary: 73092 passed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-4984
-
Jörg Bösche commented on patch set 1 CR -1 08/27/20, 10:59
SessionService.php:73According to the documentation, the second method parameter must be a boolean value. https://www.php.net/manual/de/session.configuration.php#ini.session.cookie-httponlyUpgradeWizardsService.php:52Thats very hard to read. Is it possible to move the "$stream" variable definition before the condition instead of defining inside of the condition.UpgradeWizardsService.php:410Should moved after the rewind($stream) as $messageBody = (string)stream_get_contents($stream) and used in then and else case. The redundancies of casting and stream_get_contents() have been resolved. -
Alexander Schnitzler commented on patch set 1 08/28/20, 07:41
SessionService.php:73Reply UnresolvedThat's not correct. The configuration value is boolean(ish) but ini_set only excepts strings as 2nd parameter. This is the error of phpstan: > ------ --------------------------------------------------------------- > Line Classes/Service/SessionService.php > ------ --------------------------------------------------------------- > 73 Parameter #2 $newvalue of function ini_set expects string, true given. > ------ --------------------------------------------------------------- And here the docs for ini_set: https://www.php.net/manual/en/function.ini-set.php > ini_set ( string $varname , string $newvalue ) : stringUpgradeWizardsService.php:52Reply UnresolvedReading this change after a couple of days I think it's too invasive anyway. Throwing an exception changes the logic here and I tend to revert this code block and add this part to the ignored phpstan errors for now.UpgradeWizardsService.php:410Reply UnresolvedYes, we can do so but my idea with those phpstan patches is actually to be as little invasive as possible to be able to easily backport those patches. Introducing a variable is cleaner but it results in more line changes and diffs. -
Jörg Bösche commented on patch set 1 V +1 CR +1 08/28/20, 07:55
Okay, thanks for the feedback. Verified this on version 11-dev (master). -
Oliver Klee voted on patch set 1 CR +1 08/28/20, 10:35
-
Alexander Schnitzler uploaded patch set 2 09/02/20, 10:17
-
TYPO3com voted on patch set 2 V +1 09/02/20, 10:29 Completed build in 12m 05s on Wed, 2 Sep, 10:29 AM Test Summary: 73162 passed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-5129
-
Jörg Bösche voted on patch set 2 V +1 CR +1 09/03/20, 10:04
-
Alexander Schnitzler updated the commit message in patch set 3 09/03/20, 15:44
-
TYPO3com voted on patch set 3 V +1 09/03/20, 16:07 Completed build in 22m 46s on Thu, 3 Sep, 04:07 PM Test Summary: 73182 passed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-5188
-
Oliver Klee voted on patch set 3 CR +1 09/04/20, 07:50
-
Daniel Goerz voted on patch set 3 V +1 CR +1 09/05/20, 13:30
-
Jörg Bösche voted on patch set 3 V +1 CR +1 09/07/20, 07:23
-
Benni Mack voted on patch set 3 V +2 CR +2 09/07/20, 09:26
-
Benni Mack merged patch set 4 09/07/20, 09:27