Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • T TYPO3.CMS
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 8
    • Merge requests 8
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Terraform modules
    • Model experiments
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • accessibilityaccessibility
  • TYPO3.CMS
  • Repository
  • TYPO3.CMS
  • typo3
  • sysext
  • core
  • Classes
  • Utility
  • GeneralUtility.php
Find file Blame History Permalink
  • obartsch's avatar
    [TASK] Deprecate GeneralUtility::uniqueList · b732f8d7
    obartsch authored Oct 20, 2020 and Georg Ringer's avatar Georg Ringer committed Oct 20, 2020
    Since over a decade (according to the timestamp),
    GeneralUtility::uniqueList() does not allow an array as
    first argument and furthermore doesn't use the second
    parameter anymore. Since then, both have thrown an
    `InvalidArgumentException`. Furthermore, this method
    does not belong to GeneralUtility at all.
    
    Therefore this method is now deprecated and a new one,
    using proper type hints, a return type, no second argument
    and a correct PHPDoc is added to StringUtility.
    
    All usages in the core are replaced with the new method,
    ensuring proper types.
    
    Resolves: #92607
    Releases: master
    Change-Id: Ibca5c2c312258dfc63c74f0ff11408d11226f7b6
    Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/66190
    
    
    Tested-by: default avatarTYPO3com <noreply@typo3.com>
    Tested-by: default avatarDaniel Goerz <daniel.goerz@posteo.de>
    Tested-by: default avatarAlexander Schnitzler <git@alexanderschnitzler.de>
    Tested-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
    Reviewed-by: default avatarDaniel Goerz <daniel.goerz@posteo.de>
    Reviewed-by: default avatarAlexander Schnitzler <git@alexanderschnitzler.de>
    Reviewed-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
    b732f8d7