Skip to content
Snippets Groups Projects
  1. Dec 19, 2023
    • Stefan Bürk's avatar
      [BUGFIX] Avoid type errors in `ResourceFactory` methods · d9ab1d20
      Stefan Bürk authored
      With #92289 logic has been decoupled from `ResourceFactory`
      into the `StorageRepository`. As a side change, native php
      types have been added to a couple of methods.
      
      `StorageRepository->findByUid()` parameter type has been set
      to integer, which breaks the `null` fallback and retrieving
      the default storage `uid: 0` in `ResourceFactory` method
      `getStorageObjectFromCombinedIdentifier()`. Even worse is
      the fact that `getObjectFromCombinedIdentifier()` does not
      even try to cope with a invalid identifier provided.
      
      This change modifies `getObjectFromCombinedIdentifier()` and
      `getStorageObjectFromCombinedIdentifier` of `ResourceFactory`
      to cope with missing storage identifier by falling back to
      the default storage (`0`) with a shuffle of the exploded values.
      
      As a side-effect two PHPStan ignore patterns can be removed
      from the PHPStan baseline file.
      
      Used command(s):
      
        Build/Scripts/runTests.sh -s phpstanGenerateBaseline
      
      Resolves: #102692
      Related: #92289
      Releases: main, 12.4, 11.5
      Change-Id: I8ee9736839f59db7917cb49dd0d62af17ee28cda
      Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/82233
      
      
      Tested-by: default avatarStefan Bürk <stefan@buerk.tech>
      Tested-by: default avatarcore-ci <typo3@b13.com>
      Reviewed-by: default avatarStefan Bürk <stefan@buerk.tech>
      d9ab1d20
  2. Dec 17, 2023
  3. Dec 09, 2023
  4. Dec 01, 2023
  5. Nov 27, 2023
  6. Nov 24, 2023
  7. Nov 23, 2023
  8. Nov 21, 2023
  9. Nov 20, 2023
  10. Nov 17, 2023
  11. Nov 16, 2023
  12. Nov 14, 2023
  13. Nov 13, 2023
  14. Nov 10, 2023
  15. Nov 07, 2023
  16. Nov 06, 2023
  17. Nov 05, 2023
  18. Nov 02, 2023
  19. Oct 30, 2023
  20. Oct 27, 2023
  21. Oct 26, 2023
  22. Oct 25, 2023
  23. Oct 24, 2023
  24. Oct 23, 2023
  25. Oct 20, 2023
  26. Oct 19, 2023
  27. Oct 18, 2023
  28. Oct 17, 2023
  29. Oct 15, 2023