Skip to content

Commit

Permalink
[BUGFIX] Resolve strict type assertion in RecordStateFactory
Browse files Browse the repository at this point in the history
Applying a strict "string" type to values that are "null" will
lead to type errors for TCA properties that are not configured
- most probably for "languageField", "transOrigPointerField"
or "translationSource".

see georgringer/news#776

Resolves: #86809
Releases: master
Change-Id: I53e9a48f196b8a87c97620346474528a0cf3877e
Reviewed-on: https://review.typo3.org/58807
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Daniel Goerz <daniel.goerz@posteo.de>
Tested-by: Daniel Goerz <daniel.goerz@posteo.de>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
  • Loading branch information
ohader authored and liayn committed Oct 31, 2018
1 parent f7b5985 commit 3f18227
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -100,7 +100,7 @@ protected function resolveAspectFieldNames(): array
protected function resolveAspectFieldValues(array $data): array
{
return array_map(
function (string $aspectFieldName) use ($data) {
function ($aspectFieldName) use ($data) {
return (int)($data[$aspectFieldName] ?? 0);
},
$this->resolveAspectFieldNames()
Expand Down

0 comments on commit 3f18227

Please sign in to comment.