Commit ddff5479 authored by Christian Kuhn's avatar Christian Kuhn
Browse files

[BUGFIX] Avoid undefined property in extbase

Property setValidatedInstancesContainer does not exist
in ObjectValidatorInterface and its implementations and
is never read in extbase since ever. Drop it.

Change-Id: I64b5e1c4e297322fb057f2c6a1cf6f1f8103b90e
Resolves: #98031
Releases: main, 11.5
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/75300

Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: Stefan Bürk's avatarStefan Bürk <stefan@buerk.tech>
Tested-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Stefan Bürk's avatarStefan Bürk <stefan@buerk.tech>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
parent db61655f
......@@ -2075,11 +2075,6 @@ parameters:
count: 1
path: ../../typo3/sysext/extbase/Classes/Utility/DebuggerUtility.php
-
message: "#^Access to an undefined property TYPO3\\\\CMS\\\\Extbase\\\\Validation\\\\Validator\\\\ObjectValidatorInterface\\:\\:\\$setValidatedInstancesContainer\\.$#"
count: 1
path: ../../typo3/sysext/extbase/Classes/Validation/Validator/AbstractCompositeValidator.php
-
message: "#^Call to function is_array\\(\\) with object will always evaluate to false\\.$#"
count: 1
......
......@@ -51,10 +51,6 @@ abstract class AbstractCompositeValidator implements ObjectValidatorInterface, \
*/
public function addValidator(ValidatorInterface $validator): void
{
if ($validator instanceof ObjectValidatorInterface) {
// @todo: provide bugfix as soon as it is fixed in TYPO3.Flow (https://forge.typo3.org/issues/48093)
$validator->setValidatedInstancesContainer = $this->validatedInstancesContainer;
}
$this->validators->attach($validator);
}
......
Supports Markdown
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