Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Build/phpstan/phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ parameters:
count: 1
path: ../../Classes/Core/Functional/Framework/Constraint/RequestSection/HasRecordConstraint.php

-
message: '#^Call to function property_exists\(\) with TYPO3\\CMS\\Core\\DataHandling\\DataHandler and ''copyTree'' will always evaluate to true\.$#'
identifier: function.alreadyNarrowedType
count: 1
path: ../../Classes/Core/Functional/Framework/DataHandling/Scenario/DataHandlerWriter.php
Copy link
Member

@lolli42 lolli42 Nov 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not 100% sure, but that may fail when the core patch is merged.


-
message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertTrue\(\) with true will always evaluate to true\.$#'
identifier: staticMethod.alreadyNarrowedType
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ protected function createDataHandler(): DataHandler
{
$this->dataHandler = GeneralUtility::makeInstance(DataHandler::class);
$backendUser = $this->getBackendUser();
if (isset($backendUser->uc['copyLevels'])) {
if (isset($backendUser->uc['copyLevels']) && property_exists($this->dataHandler, 'copyTree')) {
$this->dataHandler->copyTree = $backendUser->uc['copyLevels'];
}
return $this->dataHandler;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ final public function __construct(
public static function withBackendUser(BackendUserAuthentication $backendUser): self
{
$dataHandler = GeneralUtility::makeInstance(DataHandler::class);
if (isset($backendUser->uc['copyLevels'])) {
if (isset($backendUser->uc['copyLevels']) && property_exists($dataHandler, 'copyTree')) {
$dataHandler->copyTree = $backendUser->uc['copyLevels'];
}
return new static($dataHandler, $backendUser);
Expand Down