52416[TASK] Switch isset() and is_array() to null coalesce
Commit message
Review
-
Code review CR +2
- Wouter Wolters +2
- Susi Moog +1
-
Verified V +2
- Wouter Wolters +2
- Susi Moog +1
- TYPO3com +1 CI
Issues 1
Files 100
- typo3/sysext/about/Classes/Controller/AboutController.php+4 −6
- typo3/sysext/backend/Classes/Backend/Avatar/Avatar.php+2 −5
- typo3/sysext/backend/Classes/Backend/ToolbarItems/ClearCacheToolbarItem.php+5 −7
- typo3/sysext/backend/Classes/ContextMenu/ContextMenu.php+1 −5
- typo3/sysext/backend/Classes/Controller/ContentElement/ElementInformationController.php1+7 −9
- typo3/sysext/backend/Classes/Controller/ContentElement/NewContentElementController.php1+8 −10
- typo3/sysext/backend/Classes/Controller/File/EditFileController.php+13 −23
- typo3/sysext/backend/Classes/Controller/Wizard/NewContentElementWizardController.php+8 −10
- typo3/sysext/backend/Classes/Controller/BackendController.php+3 −6
- typo3/sysext/backend/Classes/Controller/LoginController.php+2 −6
- typo3/sysext/backend/Classes/Controller/PageLayoutController.php+12 −21
- typo3/sysext/backend/Classes/Form/Container/InlineRecordContainer.php+5 −10
- typo3/sysext/backend/Classes/Form/Element/ImageManipulationElement.php+7 −9
- typo3/sysext/backend/Classes/Form/FormDataProvider/DatabaseUserPermissionCheck.php+1 −3
- typo3/sysext/backend/Classes/Template/Components/ButtonBar.php+5 −7
- typo3/sysext/backend/Classes/Template/DocumentTemplate.php+14 −28
- typo3/sysext/backend/Classes/Tree/Pagetree/Commands.php+6 −6
- typo3/sysext/backend/Classes/Tree/Pagetree/DataProvider.php2+6 −11
- typo3/sysext/backend/Classes/Utility/BackendUtility.php1+36 −55
- typo3/sysext/backend/Classes/View/PageLayoutView.php4+35 −50
Show 80 more files
- typo3/sysext/backend/Classes/View/PageTreeView.php+8 −11
- typo3/sysext/core/Classes/Authentication/AbstractUserAuthentication.php+23 −29
- typo3/sysext/core/Classes/Authentication/AuthenticationService.php+4 −6
- typo3/sysext/core/Classes/Authentication/BackendUserAuthentication.php+32 −44
- typo3/sysext/core/Classes/Cache/Frontend/AbstractFrontend.php+5 −5
- typo3/sysext/core/Classes/Cache/Frontend/VariableFrontend.php+9 −10
- typo3/sysext/core/Classes/Configuration/FlexForm/FlexFormTools.php+25 −35
- typo3/sysext/core/Classes/Controller/FileDumpController.php+5 −7
- typo3/sysext/core/Classes/Core/Bootstrap.php+13 −18
- typo3/sysext/core/Classes/Database/Schema/ConnectionMigrator.php+2 −7
- typo3/sysext/core/Classes/Database/ConnectionPool.php+2 −4
- typo3/sysext/core/Classes/Database/QueryView.php+1 −3
- typo3/sysext/core/Classes/DataHandling/DataHandler.php+53 −78
- typo3/sysext/core/Classes/ExtDirect/ExtDirectApi.php+1 −3
- typo3/sysext/core/Classes/ExtDirect/ExtDirectRouter.php+1 −4
- typo3/sysext/core/Classes/FrontendEditing/FrontendEditingController.php+3 −5
- typo3/sysext/core/Classes/Html/RteHtmlParser.php2+18 −19
- typo3/sysext/core/Classes/Imaging/IconFactory.php+4 −7
- typo3/sysext/core/Classes/Localization/Locales.php+4 −8
- typo3/sysext/core/Classes/Page/PageRenderer.php+73 −67
- typo3/sysext/core/Classes/Session/SessionManager.php+2 −2
- typo3/sysext/core/Classes/Type/File/FileInfo.php+9 −13
- typo3/sysext/core/Classes/TypoScript/TemplateService.php+32 −40
- typo3/sysext/core/Classes/Utility/File/ExtendedFileUtility.php+5 −7
- typo3/sysext/core/Classes/Utility/ClientUtility.php+12 −15
- typo3/sysext/core/Classes/Utility/GeneralUtility.php3+20 −31
- typo3/sysext/extbase/Classes/Mvc/Cli/CommandManager.php+1 −2
- typo3/sysext/extbase/Classes/Service/ExtensionService.php+9 −22
- typo3/sysext/extbase/Classes/SignalSlot/Dispatcher.php+1 −1
- typo3/sysext/felogin/Classes/Controller/FrontendLoginController.php+34 −60
- typo3/sysext/filelist/Classes/FileList.php+10 −12
- typo3/sysext/form/Classes/Controller/FormEditorController.php+7 −12
- typo3/sysext/form/Classes/Controller/FormManagerController.php+20 −35
- typo3/sysext/form/Classes/Domain/Factory/AbstractFormFactory.php+6 −11
- typo3/sysext/form/Classes/Domain/Model/FormElements/AbstractFormElement.php+6 −11
- typo3/sysext/form/Classes/Domain/Model/FormElements/Section.php+6 −11
- typo3/sysext/form/Classes/Domain/Model/FormElements/UnknownFormElement.php+6 −11
- typo3/sysext/form/Classes/Domain/Model/Renderable/AbstractRenderable.php+6 −11
- typo3/sysext/form/Classes/Domain/Renderer/FluidFormRenderer.php+7 −12
- typo3/sysext/form/Classes/Domain/Runtime/FormRuntime.php+37 −56
- typo3/sysext/form/Classes/ViewHelpers/RenderRenderableViewHelper.php+7 −12
- typo3/sysext/frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php+5 −7
- typo3/sysext/frontend/Classes/ContentObject/ContentContentObject.php+3 −5
- typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php1+60 −80
- typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php+95 −160
- typo3/sysext/frontend/Classes/Hooks/MediaItemHooks.php+6 −10
- typo3/sysext/frontend/Classes/Http/EidRequestHandler.php+3 −7
- typo3/sysext/frontend/Classes/Http/RequestHandler.php+3 −7
- typo3/sysext/frontend/Classes/Imaging/GifBuilder.php+3 −5
- typo3/sysext/frontend/Classes/Page/PageRepository.php+32 −42
- typo3/sysext/frontend/Classes/Plugin/AbstractPlugin.php+6 −10
- typo3/sysext/frontend/Classes/Typolink/AbstractTypolinkBuilder.php+2 −5
- typo3/sysext/frontend/Classes/Typolink/PageLinkBuilder.php+6 −8
- typo3/sysext/frontend/Classes/View/AdminPanelView.php+12 −14
- typo3/sysext/impexp/Classes/ImportExport.php+2 −4
- typo3/sysext/indexed_search/Classes/Controller/AdministrationController.php+5 −7
- typo3/sysext/indexed_search/Classes/Controller/SearchController.php+5 −7
- typo3/sysext/indexed_search/Classes/Domain/Repository/IndexSearchRepository.php+2 −2
- typo3/sysext/indexed_search/Classes/Indexer.php+8 −12
- typo3/sysext/info/Classes/Controller/PageInformationController.php+3 −6
- typo3/sysext/linkvalidator/Classes/Report/LinkValidatorReport.php+14 −18
- typo3/sysext/linkvalidator/Classes/Task/ValidatorTask.php+31 −45
- typo3/sysext/linkvalidator/Classes/LinkAnalyzer.php+2 −4
- typo3/sysext/recordlist/Classes/Controller/AbstractLinkBrowserController.php+5 −9
- typo3/sysext/recordlist/Classes/Controller/ElementBrowserController.php+7 −9
- typo3/sysext/recordlist/Classes/RecordList/AbstractDatabaseRecordList.php2+8 −10
- typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php+24 −31
- typo3/sysext/recordlist/Classes/RecordList.php+3 −6
- typo3/sysext/reports/Classes/Controller/ReportController.php+1 −14
- typo3/sysext/reports/Classes/Report/Status/ConfigurationStatus.php+7 −8
- typo3/sysext/scheduler/Classes/Controller/SchedulerModuleController.php+9 −11
- typo3/sysext/scheduler/Classes/Task/OptimizeDatabaseTableAdditionalFieldProvider.php+2 −4
- typo3/sysext/scheduler/ext_localconf.php+4 −10
- typo3/sysext/setup/Classes/Controller/SetupModuleController.php+6 −10
- typo3/sysext/sys_action/Classes/ActionTask.php+2 −4
- typo3/sysext/taskcenter/Classes/Controller/TaskModuleController.php+1 −1
- typo3/sysext/workspaces/Classes/Controller/Remote/RemoteServer.php+4 −6
- typo3/sysext/workspaces/Classes/Hook/DataHandlerHook.php2+3 −5
- typo3/sysext/workspaces/Classes/Service/WorkspaceService.php+14 −20
- typo3/sysext/workspaces/ext_localconf.php+1 −1
Review log 4557
Show 2432 earlier messages
-
Claus Due uploaded patch set 1 04/11/17, 15:59
-
TYPO3com voted on patch set 1 V -1 04/11/17, 16:06 Completed build in 07m 05s on Tue, 11 Apr, 06:06 PM Test Summary: 6 of 56651 failed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-10474
-
Claus Due uploaded patch set 2 04/11/17, 16:14
-
TYPO3com voted on patch set 2 V -1 04/11/17, 16:24 Completed build in 09m 22s on Tue, 11 Apr, 06:24 PM Test Summary: 56642 passed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-10475
-
Claus Due uploaded patch set 3 04/11/17, 18:20
-
TYPO3com voted on patch set 3 V +1 04/11/17, 18:31 Completed build in 10m 50s on Tue, 11 Apr, 08:31 PM Test Summary: 56642 passed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-10477
-
Claus Due uploaded patch set 4 05/22/17, 18:26
-
TYPO3com voted on patch set 4 V -1 05/22/17, 18:34 Completed build in 07m 38s on Mon, 22 May, 08:34 PM Test Summary: 55889 passed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-11728
-
Claus Due uploaded patch set 5 05/22/17, 18:40
-
TYPO3com voted on patch set 5 V +1 05/22/17, 18:47 Completed build in 06m 36s on Mon, 22 May, 08:47 PM Test Summary: 55889 passed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-11730
-
Oliver Klee commented on patch set 5 CR -1 05/22/17, 20:06
ModulesController.php:78This change does not seem to be related. -
Claus Due commented on patch set 5 05/31/17, 12:29
ModulesController.php:77ReplyThis is correct, rather than ignore the array an error would now be shown. If debug mode is enabled the error will even include this very line so the dev can see exactly which hook array he misconfigured. One might argue ignoring is better but there seems to be a preference for verbose errors rather than silent ignoring in pretty much all other areas of TYPO3. (plus, we're saving a hell of a lot of calls to is_array)ModulesController.php:78ReplyOops, yes - caused during conflict resolving due to a patch lolli made which touched *every* loop I also touched in this patch. This works, but unintentionally reverts lolli's change in this line. -
Claus Due commented on patch set 6 05/31/17, 12:29
Published edit on patch set 5. -
TYPO3com voted on patch set 6 V +1 05/31/17, 12:37 Completed build in 07m 11s on Wed, 31 May, 02:37 PM Test Summary: 55889 passed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-11905
-
Oliver Klee commented on patch set 5 05/31/17, 14:21
ModulesController.php:77ReplyThen this should not be marked as CLEANUP, but as a breaking (!!!) CHANGE, as this is a change to the behavior. -
Oliver Klee commented on patch set 6 CR -1 05/31/17, 14:22
This then needs to marked as breaking, and as a TASK, not at as CLEANUP. -
Claus Due commented on patch set 6 06/13/17, 11:16
Not sure I agree about the breaking part - maybe we can meet half way and I'll add an important RST that says "used to ignore bad config, now reports it". My reasoning is that because invalid entries would be ignored before this patch, the likelihood that any production setup contains an invalid entry is absolutely minimal. If it does, then that is an error (and the registered hook would never have worked anyway). The error it does throw is a NOTICE and assuming people use recommended setups, would only be shown in development sites. -
Tymoteusz Motylewski commented on patch set 6 CR -2 11/05/17, 20:31
On hold, we need a decision first https://decisions.typo3.org/t/is-is-array-check-needed-for-the-hook-handling/309 -
Helmut Hummel commented on patch set 6 CR -1 11/06/17, 10:24
I did not go through the complete patch, but found some places where rebase went wrongElementInformationController.php:215needs to stay makeInstance. maybe a wrong rebase?NewContentElementController.php:228same hereBackendUtility.php:2505same here -
Tymoteusz Motylewski commented on patch set 6 CR 0 11/07/17, 13:43
we have green light from Benni. -
Helmut Hummel commented on patch set 6 11/07/17, 14:40
I would agree that this is not a cleanup, but rather a task, or even a feature. It does not harm to mark this as breaking, although it only breaks, when there is a dev error that needs a fix anyway -
Stefan Neufeind commented on patch set 6 11/09/17, 11:29
@Claus: Can you look into this again? Or should I help out? Let's get this through so it doesn't conflict to often with other merges inbetween. -
Claus Due commented on patch set 6 11/09/17, 11:31
I will take absolutely any help you want to give - I am working ~10 hours a day on a project for the next three months so my availability is extremely low. -
Stefan Neufeind uploaded patch set 7 11/10/17, 00:54
-
TYPO3com voted on patch set 7 V -1 11/10/17, 00:55 Completed build in 22s on Fri, 10 Nov, 01:55 AM Test Summary: No tests found Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-16225
-
Stefan Neufeind commented on patch set 7 11/10/17, 00:55
rebased, fixed, extended Turned this into a "[TASK]" now. -
Stefan Neufeind uploaded patch set 8 11/10/17, 01:00
-
TYPO3com voted on patch set 8 V +1 11/10/17, 01:11 Completed build in 10m 19s on Fri, 10 Nov, 02:11 AM Test Summary: 56762 passed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-16226
-
Stefan Neufeind commented on patch set 8 CR +1 11/11/17, 15:59
Could somebody take a look, please? -
Jörg Bösche voted on patch set 8 CR +1 11/13/17, 11:23
-
Tymoteusz Motylewski commented on patch set 8 11/13/17, 12:30
DataProvider.php:78missing ?? [] ?PageLayoutView.php:2063is removal of the &-reference backward compatible?PageLayoutView.php:2169are you sure we don't need parenthesis around inner "??" ? -
Stefan Neufeind commented on patch set 8 CR -1 11/13/17, 12:44
DataProvider.php:78ReplyThanks. I'll then take care of this one with the next round.PageLayoutView.php:2063Replysince we only iterated over it to fetch the classNames I don't see a problem and the reference wasn't really needed. Or do you have some specialcase in mind? Well, in theory with a reference the foreach might be resetting the internal array-iterator of that array - but I expect that's unlikely to make a difference.PageLayoutView.php:2169Replyyou mean since it is two times ?? now? I just tested this here and it works for me as expected: foreach ($a ?? $b ?? ['default'] as $x)
-
Tymoteusz Motylewski commented on patch set 8 CR -1 11/13/17, 15:10
GeneralUtility.php:3544do we need "?? false" here? empty doesn't throw a notice when array key does not exist, so additional check for isset (??) sounds unnecessary.GeneralUtility.php:3806same here, ?? is probably unnecessary.ContentObjectRenderer.php:1456$_params got lost, don't they?AbstractDatabaseRecordList.php:713this comment should not be removed right?DataHandlerHook.php:609it was not passed as reference before. -
Stefan Neufeind commented on patch set 9 11/14/17, 07:10
Published edit on patch set 8. -
Stefan Neufeind commented on patch set 9 11/14/17, 07:11
@Tymek: Took care of the missing ?? [] in DataProvider.php. Imho the other cases you asked about are okay (as I commented)? If you feel different please speak up. -
TYPO3com voted on patch set 9 V +1 11/14/17, 07:25 Completed build in 14m 37s on Tue, 14 Nov, 08:25 AM Test Summary: 56762 passed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-16313
-
Tymoteusz Motylewski commented on patch set 9 CR -1 11/14/17, 08:09
@Stefan, please also take a look at the comments I gave on the left side (original file). e.g. in ContentObjectRenderer.php line 1456 -
Tymoteusz Motylewski commented on patch set 9 11/14/17, 08:13
also some other comments were also not taken into account like passing as a reference which was not there before. Please review all my comments to patchset 8 (I submitted them in 2 parts). -
Tymoteusz Motylewski commented on patch set 9 11/14/17, 17:39
few more place are not covered: GeneralUtility::minifyJavascript and SignalSlot/Dispatcher.php::connect - line 95 -
Tymoteusz Motylewski commented on patch set 8 11/20/17, 10:34
will push a followup in a secondGeneralUtility.php:3544ReplyDoneAbstractDatabaseRecordList.php:713ReplyDoneDataHandlerHook.php:609ReplyDone -
Tymoteusz Motylewski uploaded patch set 10 11/20/17, 10:34
-
TYPO3com voted on patch set 10 V +1 11/20/17, 10:45 Completed build in 10m 45s on Mon, 20 Nov, 11:45 AM Test Summary: 56802 passed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-16488
-
Tymoteusz Motylewski uploaded patch set 11 11/20/17, 19:29
-
TYPO3com voted on patch set 11 V +1 11/20/17, 19:46 Completed build in 16m 53s on Mon, 20 Nov, 08:46 PM Test Summary: 56802 passed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-16506
-
Tymoteusz Motylewski voted on patch set 11 CR +1 V +1 11/24/17, 22:20
-
Stefan Neufeind commented on patch set 11 CR +1 V +1 11/24/17, 22:45
@Tymek: thanks for taking care of some more cases -
Wouter Wolters voted on patch set 11 CR +1 11/25/17, 14:14
-
Tymoteusz Motylewski uploaded patch set 12 11/27/17, 11:35
-
TYPO3com voted on patch set 12 V +1 11/27/17, 11:44 Completed build in 08m 53s on Mon, 27 Nov, 12:44 PM Test Summary: 56802 passed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-16646
-
Tymoteusz Motylewski commented on patch set 12 11/27/17, 11:47
rebased -
Wouter Wolters voted on patch set 12 CR +1 11/27/17, 20:44
-
Susi Moog voted on patch set 12 CR +1 11/27/17, 21:03
-
Susi Moog voted on patch set 12 V +1 11/27/17, 21:07
-
Wouter Wolters voted on patch set 12 CR +2 V +2 11/27/17, 21:19
-
Gerrit merged patch set 12 11/27/17, 21:19
-
Benni Mack commented on patch set 13 12/07/17, 15:51
will fix.RteHtmlParser.php:546regression: After this change, the "else" part is always executed. The point of the hook was that it was EITHER hooked, or processed regularly. -
Stefan Neufeind commented on patch set 13 12/07/17, 16:00
RteHtmlParser.php:546Reply@Claus: Can you give a reason for that change? Seems to have been like this from patchset 4 on.
ModulesController.php:77