Skip to content

Commit 45d213f

Browse files
committed
[TASK] phpstan
1 parent 3eddad2 commit 45d213f

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

Build/phpstan-baseline-13.neon

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,32 @@ parameters:
4949
message: "#^Cannot call method toArray\\(\\) on array\\.$#"
5050
count: 1
5151
path: ../Classes/Listener/PageContentPreviewRendering.php
52+
-
53+
message: "#^Class TYPO3\\\\CMS\\\\Backend\\\\View\\\\PageLayoutContext constructor invoked with 4 parameters, 5 required\\.$#"
54+
count: 1
55+
path: ../Tests/Functional/Integrity/IntegrityTest.php
56+
57+
-
58+
message: "#^Instantiated class TYPO3\\\\CMS\\\\Backend\\\\Context\\\\PageContext not found\\.$#"
59+
count: 1
60+
path: ../Tests/Functional/Integrity/IntegrityTest.php
61+
62+
-
63+
message: "#^Instantiated class TYPO3\\\\CMS\\\\Backend\\\\Domain\\\\Model\\\\Language\\\\PageLanguageInformation not found\\.$#"
64+
count: 1
65+
path: ../Tests/Functional/Integrity/IntegrityTest.php
66+
67+
-
68+
message: "#^Parameter \\#1 \\$pageRecord of class TYPO3\\\\CMS\\\\Backend\\\\View\\\\PageLayoutContext constructor expects array, TYPO3\\\\CMS\\\\Backend\\\\Context\\\\PageContext given\\.$#"
69+
count: 1
70+
path: ../Tests/Functional/Integrity/IntegrityTest.php
71+
72+
-
73+
message: "#^Parameter \\#3 \\$site of class TYPO3\\\\CMS\\\\Backend\\\\View\\\\PageLayoutContext constructor expects TYPO3\\\\CMS\\\\Core\\\\Site\\\\Entity\\\\SiteInterface, PHPUnit\\\\Framework\\\\MockObject\\\\MockObject&TYPO3\\\\CMS\\\\Backend\\\\View\\\\Drawing\\\\DrawingConfiguration given\\.$#"
74+
count: 1
75+
path: ../Tests/Functional/Integrity/IntegrityTest.php
76+
77+
-
78+
message: "#^Parameter \\#4 \\$drawingConfiguration of class TYPO3\\\\CMS\\\\Backend\\\\View\\\\PageLayoutContext constructor expects TYPO3\\\\CMS\\\\Backend\\\\View\\\\Drawing\\\\DrawingConfiguration, PHPUnit\\\\Framework\\\\MockObject\\\\MockObject&TYPO3\\\\CMS\\\\Core\\\\Http\\\\ServerRequest given\\.$#"
79+
count: 1
80+
path: ../Tests/Functional/Integrity/IntegrityTest.php

Tests/Functional/Integrity/IntegrityTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ public function wrongPidErrorElementsAreShownAsUnusedElements(): void
8989
->fetchAssociative();
9090
if (GeneralUtility::makeInstance(Typo3Version::class)->getMajorVersion() < 12) {
9191
$pageLayoutContext = new PageLayoutContext($pageRecord, $backendLayout);
92+
$contentFetcher = new ContentFetcher($pageLayoutContext);
93+
$unusedRecords = $contentFetcher->getUnusedRecords();
9294
} else {
9395
$site = $this->getMockBuilder(Site::class)->disableOriginalConstructor()->getMock();
9496
$drawingConfiguration = $this->getMockBuilder(DrawingConfiguration::class)->disableOriginalConstructor()->getMock();

0 commit comments

Comments
 (0)