Skip to content
Snippets Groups Projects
Commit ce5d4b05 authored by Benni Mack's avatar Benni Mack Committed by Stefan Bürk
Browse files

[BUGFIX] Restore file.crop syntax in PHP 8

When using "file.crop" via TypoScript, PHP 8
requires strict types for float values.
Therefore, all values, which were strings
before, are now properly casted to floats,
avoiding PHP errors.

Example TypoScript:

page.10 = IMAGE
page.10 {
  file = 1:/myimage.jpg
  file.ext = png
  file.width = 200
  file.height = 200
  file.crop = 50,50,100,100
}

Resolves: #101994
Releases: main, 12.4
Change-Id: I73c2dc9128fded7874b506ddb37026077f5a67a6
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/81156


Tested-by: default avatarOliver Klee <typo3-coding@oliverklee.de>
Tested-by: default avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: default avatarStefan Bürk <stefan@buerk.tech>
Tested-by: default avatarStefan Bürk <stefan@buerk.tech>
Reviewed-by: default avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: default avatarOliver Klee <typo3-coding@oliverklee.de>
Tested-by: default avatarcore-ci <typo3@b13.com>
parent 385c60a3
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