Commit 821e8964 authored by Stefan Bürk's avatar Stefan Bürk Committed by Christian Kuhn
Browse files

[TASK] Avoid setting undefined property in test case

With PHP 8.2 setting undefined properties in class
instances is deprecated and emits corresponding
deprecation notice.

This patch removes a superflous test, setting a
undefiend property in `TypoScriptFrontendController`
to avoid PHP 8.2 deprecation message.

Resolves: #98039
Releases: main, 11.5
Change-Id: I0944a13f6c87c95db01577dbdb499c39675691be

Tested-by: core-ci's avatarcore-ci <>
Tested-by: Oliver Klee's avatarOliver Klee <>
Tested-by: Christian Kuhn's avatarChristian Kuhn <>
Reviewed-by: Oliver Klee's avatarOliver Klee <>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <>
parent aa1dcf2d
......@@ -383,12 +383,9 @@ class ConditionMatcherTest extends FunctionalTestCase
public function genericGetVariablesSucceedsWithNamespaceTSFE(): void
$GLOBALS['TSFE']->id = 1234567;
$GLOBALS['TSFE']->testSimpleObject = new \stdClass();
$GLOBALS['TSFE']->testSimpleObject->testSimpleVariable = 'testValue';
$subject = $this->getConditionMatcher();
self::assertTrue($subject->match('[getTSFE().id == 1234567]'));
self::assertTrue($subject->match('[getTSFE().testSimpleObject.testSimpleVariable == "testValue"]'));
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