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

[TASK] Have a minor phpstan happification in ext:belog

Resolves: #98397
Releases: main
Change-Id: Id3c3ee0a9de93062840ee0acc39a8c8917326535
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/75807


Tested-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
parent fee75b26
......@@ -230,11 +230,6 @@ parameters:
count: 1
path: ../../typo3/sysext/backend/Tests/Unit/Utility/BackendUtilityTest.php
-
message: "#^Negated boolean expression is always false\\.$#"
count: 1
path: ../../typo3/sysext/belog/Classes/Controller/BackendLogController.php
-
message: "#^Property TYPO3\\\\CMS\\\\Belog\\\\Domain\\\\Model\\\\LogEntry\\:\\:\\$newId \\(string\\) does not accept default value of type int\\.$#"
count: 1
......
......@@ -133,7 +133,7 @@ class BackendLogController extends ActionController
*/
public function deleteMessageAction(int $errorUid): ResponseInterface
{
/** @var LogEntry $logEntry */
/** @var LogEntry|null $logEntry */
$logEntry = $this->logEntryRepository->findByUid($errorUid);
if (!$logEntry) {
$this->addFlashMessage(LocalizationUtility::translate('actions.delete.noRowFound', 'belog') ?? '', '', ContextualFeedbackSeverity::WARNING);
......
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