[BUGFIX] PHP Warning DBAL 13/46213/2
authorFrank Naegler <frank.naegler@typo3.org>
Sun, 24 Jan 2016 21:54:57 +0000 (22:54 +0100)
committerMorton Jonuschat <m.jonuschat@mojocode.de>
Mon, 25 Jan 2016 10:20:14 +0000 (11:20 +0100)
This patch fix the declaration of
TYPO3\CMS\Dbal\RecordList\DatabaseRecordList::makeSearchString
to be compatible with the parent method:
TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRecordList::makeSearchString

Resolves: #72912
Releases: master
Change-Id: I313a35d9b2cc365b2d6012996551fb2ecb1ebbb0
Reviewed-on: https://review.typo3.org/46213
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de>
typo3/sysext/dbal/Classes/RecordList/DatabaseRecordList.php

index 1d2712c..f84fa68 100644 (file)
@@ -25,10 +25,11 @@ class DatabaseRecordList extends \TYPO3\CMS\Recordlist\RecordList\DatabaseRecord
      * DBAL specific: no LIKE for numeric fields, in this case "uid" (breaks on Oracle)
      * no LIKE for BLOB fields, skip
      *
-     * @param string Table, in which the fields are being searched.
+     * @param string $table, in which the fields are being searched.
+     * @param int $currentPid argument not used in this method, only available for compatibility to parent class
      * @return string Returns part of WHERE-clause for searching, if applicable.
      */
-    public function makeSearchString($table)
+    public function makeSearchString($table, $currentPid = -1)
     {
         // Make query, only if table is valid and a search string is actually defined:
         if ($GLOBALS['TCA'][$table] && $this->searchString) {