Skip to content
Snippets Groups Projects
Commit 2a95db88 authored by Christian Kuhn's avatar Christian Kuhn
Browse files

[TASK] Harden ResourceFactory->getFileReferenceObject()

The method throws an exception on !is_numeric() already.
This includes float, which is bogus. We can simplify
with an argument type hint.

Resolves: #103175
Releases: main
Change-Id: I990f273f16581c553e17cb610524e2cbc3659baa
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/83076


Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarOliver Klee <typo3-coding@oliverklee.de>
Tested-by: default avatarOliver Klee <typo3-coding@oliverklee.de>
Tested-by: default avatarStefan Bürk <stefan@buerk.tech>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarcore-ci <typo3@b13.com>
Reviewed-by: default avatarStefan Bürk <stefan@buerk.tech>
parent 8799c54c
Branches
Tags
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment