69035[TASK] Activate AppendedArrayItemTypeRule phpstan rule
Commit message
Review
-
Code review CR +2 Done
- Daniel Goerz +2
- Oliver Klee +1
- Jochen Roth +1
-
Verified V +2 Done
- Daniel Goerz +2
- Jochen Roth +1
- core-ci +1 CI
Issues 1
Files 18
- Build/Scripts/annotationChecker.php+3 −1
- Build/phpstan.level3.neon+1 −1
- typo3/sysext/backend/Classes/Backend/Avatar/Avatar.php+4 −1
- typo3/sysext/backend/Classes/Form/Container/InlineControlContainer.php+1 −1
- typo3/sysext/core/Classes/Collection/AbstractRecordCollection.php+3 −0
- typo3/sysext/core/Classes/Collection/CollectionInterface.php1+2 −0
- typo3/sysext/core/Classes/Collection/RecordCollectionInterface.php+3 −0
- typo3/sysext/core/Classes/LinkHandling/LinkService.php2+9 −3
- typo3/sysext/core/Classes/Locking/ResourceMutex.php2+2 −2
- typo3/sysext/core/Classes/Resource/Collection/AbstractFileCollection.php+1 −0
- typo3/sysext/core/Classes/Resource/ResourceFactory.php+2 −2
- typo3/sysext/core/Classes/Utility/GeneralUtility.php+1 −1
- typo3/sysext/dashboard/Classes/Dashboard.php+3 −5
- typo3/sysext/dashboard/Classes/WidgetRegistry.php+1 −1
- typo3/sysext/extensionmanager/Classes/Remote/RemoteRegistry.php+1 −1
- typo3/sysext/linkvalidator/Classes/Report/LinkValidatorReport.php+5 −1
- typo3/sysext/linkvalidator/Classes/LinkAnalyzer.php+7 −5
- typo3/sysext/recordlist/Classes/Controller/AbstractLinkBrowserController.php+2 −2
Review log 1316
-
Alexander Schnitzler uploaded patch set 1 05/05/21, 12:40
-
Alexander Schnitzler wrote 05/05/21, 12:40
Topic set to phpstan -
core-ci voted on patch set 1 V -1 05/05/21, 12:51 Core CI is not happy: https://gitlab.typo3.org/TYPO3/CI/cms/-/pipelines/11206
-
Alexander Schnitzler uploaded patch set 2 05/05/21, 12:51
-
Alexander Schnitzler commented on patch set 2 05/05/21, 12:57
CollectionInterface.php:26In case anyone wonders about this: https://phpstan.org/blog/generics-in-php-using-phpdocs -
Alexander Schnitzler commented on patch set 2 05/05/21, 12:59
This change is ready for review. -
core-ci voted on patch set 2 V +1 05/05/21, 13:03 Core CI is happy: https://gitlab.typo3.org/TYPO3/CI/cms/-/pipelines/11208
-
Daniel Goerz uploaded patch set 3 05/08/21, 10:49
-
Daniel Goerz voted on patch set 3 V +1 CR +1 05/08/21, 10:50
-
core-ci voted on patch set 3 V +1 05/08/21, 11:01 Core CI is happy: https://gitlab.typo3.org/TYPO3/CI/cms/-/pipelines/11314
-
Oliver Klee voted on patch set 3 CR +1 05/08/21, 11:36
-
Andreas Kienast commented on patch set 3 05/09/21, 10:58
LinkService.php:58Do we need the if() at all? IIRC foreach() is a no-op on empty arrays.ResourceMutex.php:113Semi-related to that patch: I wonder whether `unset($this->workerLocks[$scope])` would be the better choice here. -
Alexander Schnitzler commented on patch set 3 05/09/21, 11:07
LinkService.php:58Reply UnresolvedTrue, it's not needed. I kept the if conditon to not mix changes in function and code style because removing the diff results in removing indentation. But if you want to make this step, go for it. :)ResourceMutex.php:113Reply UnresolvedI personally like that approach because it shows absense of key and value. What we should do here in the long run is using a collection anyway and remove processed entries from the collection, hence, unsetting the key here, is closer to the result we are aiming for in the future I think. -
Jochen Roth voted on patch set 3 V +1 CR +1 05/10/21, 08:01
-
Daniel Goerz commented on patch set 3 V +2 CR +2 05/10/21, 09:41
Andi kindly allowed me to merge this as is 😊 -
Daniel Goerz merged patch set 4 05/10/21, 09:41