Review 13.4 Merged

87054[TASK] Avoid friendsoftypo3/phpstan-typo3

Christian Kuhn CR +2 V +2 Normal +11 −53 updated 11/19/24, 13:37

Commit message

In preparation of phpstan v2, we review our phpstan
extensions. Looking closer at friendsoftypo3/phpstan-typo3,
most of it is obsolete meanwhile, we can get rid of
the dependency. Details:

* phpstan finds most constants manually, except CR and
  LF, which we add to phpstan boostrap.
* extbase ObjectManager does not exist anymore since v12
* Context->getAspect() receives a conditional return type
  leading to a very similar solution
* GeneralUtility::makeInstance() has a matching generic
  already
* extbase Query and QueryInterface have generics already,
  a tests needs a minor adaption.

Review

  • Code review CR +2 Done
    • Christian Kuhn +2
  • Verified V +2 Done
    • Christian Kuhn +2
    • core-ci +1 CI

Issues 1

Files 7

Review log 46

  1. Christian Kuhn uploaded patch set 1 11/19/24, 09:37

  2. core-ci voted on patch set 1 V +1 11/19/24, 09:44 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/69678

  3. Christian Kuhn updated the commit message in patch set 2 V +1 11/19/24, 11:13

  4. core-ci voted on patch set 2 V +1 11/19/24, 11:28 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/69689

  5. Christian Kuhn voted on patch set 2 CR +2 V +2 11/19/24, 13:37

  6. Christian Kuhn merged patch set 3 11/19/24, 13:37