Skip to content

Commit 780850d

Browse files
Josef Florian Glatzirnnr
authored andcommitted
[BUGFIX] Fatal error incompatible postProcessContentObjectInitialization
Fix index job by replacing type hint with namespaced version Change-Id: Id56d71d6254a97a6cc024eaee3fec45582d65368 Related: #61853
1 parent bba91e6 commit 780850d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Classes/IndexQueue/FrontendHelper/UserGroupDetector.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,9 @@ public function deactivateTcaFrontendGroupEnableFields(&$parameters, $parentObje
106106
*
107107
* @param integer The page ID
108108
* @param boolean If set, the check for group access is disabled. VERY rarely used
109-
* @param t3lib_pageSelect parent t3lib_pageSelect object
109+
* @param \TYPO3\CMS\Frontend\Page\PageRepository parent t3lib_pageSelect object
110110
*/
111-
public function getPage_preProcess(&$uid, &$disableGroupAccessCheck, t3lib_pageSelect $parentObject) {
111+
public function getPage_preProcess(&$uid, &$disableGroupAccessCheck, \TYPO3\CMS\Frontend\Page\PageRepository $parentObject) {
112112
$disableGroupAccessCheck = TRUE;
113113
$parentObject->where_groupAccess = ''; // just to be on the safe side
114114
}
@@ -119,9 +119,9 @@ public function getPage_preProcess(&$uid, &$disableGroupAccessCheck, t3lib_pageS
119119
*
120120
* @param array Page record
121121
* @param integer Overlay language ID
122-
* @param t3lib_pageSelect Parent t3lib_pageSelect object
122+
* @param \TYPO3\CMS\Frontend\Page\PageRepository Parent t3lib_pageSelect object
123123
*/
124-
public function getPageOverlay_preProcess(&$pageRecord, &$languageUid, t3lib_pageSelect $parentObject) {
124+
public function getPageOverlay_preProcess(&$pageRecord, &$languageUid, \TYPO3\CMS\Frontend\Page\PageRepository $parentObject) {
125125
if (is_array($pageRecord)) {
126126
$pageRecord['fe_group'] = '';
127127
$pageRecord['extendToSubpages'] = '0';
@@ -133,9 +133,9 @@ public function getPageOverlay_preProcess(&$pageRecord, &$languageUid, t3lib_pag
133133
/**
134134
* Hook for post processing the initialization of tslib_cObj
135135
*
136-
* @param tslib_cObj parent content object
136+
* @param \TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer parent content object
137137
*/
138-
public function postProcessContentObjectInitialization(tslib_cObj &$parentObject) {
138+
public function postProcessContentObjectInitialization(\TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer &$parentObject) {
139139
if (!empty($parentObject->currentRecord)) {
140140
list($table) = explode(':', $parentObject->currentRecord);
141141

0 commit comments

Comments
 (0)