diff --git a/Build/phpstan/phpstan-baseline.neon b/Build/phpstan/phpstan-baseline.neon index 6f276a7a46acff9d40b885b680f7393d403a09ee..0b3cc298bb1df289a6e2cc457d164a170c9dfc44 100644 --- a/Build/phpstan/phpstan-baseline.neon +++ b/Build/phpstan/phpstan-baseline.neon @@ -700,11 +700,6 @@ parameters: count: 1 path: ../../typo3/sysext/core/Classes/DataHandling/DataHandler.php - - - message: "#^Method TYPO3\\\\CMS\\\\Core\\\\DataHandling\\\\DataHandler\\:\\:copyRecord_raw\\(\\) should return int but returns null\\.$#" - count: 4 - path: ../../typo3/sysext/core/Classes/DataHandling/DataHandler.php - - message: "#^Method TYPO3\\\\CMS\\\\Core\\\\DataHandling\\\\DataHandler\\:\\:doesPageHaveUnallowedTables\\(\\) should return array\\|bool but returns string\\.$#" count: 1 diff --git a/typo3/sysext/core/Classes/DataHandling/DataHandler.php b/typo3/sysext/core/Classes/DataHandling/DataHandler.php index 0e5262ef9498dac31febde77d47ec6d85a41e6ed..e1b3406ceac85578fe0a807b1b9c9f6d5adf4f03 100644 --- a/typo3/sysext/core/Classes/DataHandling/DataHandler.php +++ b/typo3/sysext/core/Classes/DataHandling/DataHandler.php @@ -3594,7 +3594,7 @@ class DataHandler implements LoggerAwareInterface * @param int $pid Element PID (real PID, not checked) * @param array $overrideArray Override array - must NOT contain any fields not in the table! * @param array $workspaceOptions Options to be forwarded if actions happen on a workspace currently - * @return int Returns the new ID of the record (if applicable) + * @return int|null Returns the new ID of the record (if applicable) * @internal should only be used from within DataHandler */ public function copyRecord_raw($table, $uid, $pid, $overrideArray = [], array $workspaceOptions = [])