Skip to content

Commit

Permalink
[TASK] Remove ignoreErrors settings, closes #164
Browse files Browse the repository at this point in the history
  • Loading branch information
christianbltr committed Jan 3, 2025
1 parent b70d80c commit ffb3552
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 14 deletions.
1 change: 0 additions & 1 deletion Classes/Indexer/IndexerBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,6 @@ public function addTagsToRecords($uids, $pageWhere = '')
->add('select', $fields)
->from('pages')
->from('tx_kesearch_filteroptions')
// @phpstan-ignore-next-line
->add('where', $where)
->groupBy('pages.uid')
->executeQuery();
Expand Down
6 changes: 0 additions & 6 deletions Classes/Lib/Db.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,18 +121,14 @@ public function getSearchResultByMySQL()
$resultQuery = $queryBuilder

Check failure on line 121 in Classes/Lib/Db.php

View workflow job for this annotation

GitHub Actions / Build PHP/TYPO3 (8.2, ^12)

No error to ignore is reported on line 121.

Check failure on line 121 in Classes/Lib/Db.php

View workflow job for this annotation

GitHub Actions / Build PHP/TYPO3 (8.3, ^12)

No error to ignore is reported on line 121.

Check failure on line 121 in Classes/Lib/Db.php

View workflow job for this annotation

GitHub Actions / Build PHP/TYPO3 (8.1, ^12)

No error to ignore is reported on line 121.
->add('select', $queryParts['SELECT'])
->from($queryParts['FROM'])
// @phpstan-ignore-next-line
->add('where', $queryParts['WHERE']);
if (!empty($queryParts['GROUPBY'])) {
// @phpstan-ignore-next-line
$resultQuery->add('groupBy', $queryParts['GROUPBY']);
}
if (!empty($queryParts['ORDERBY'])) {
// @phpstan-ignore-next-line
$resultQuery->add('orderBy', $queryParts['ORDERBY']);
}
if (!empty($queryParts['HAVING'])) {
// @phpstan-ignore-next-line
$resultQuery->add('having', $queryParts['HAVING']);
}
} else {
Expand Down Expand Up @@ -572,8 +568,6 @@ public function getWhere()
// @extensionScannerIgnoreLine
$where .= $pageRepository->enableFields($this->table);
} else {
// phpstan-ignore-next-line can be removed once support for TYPO3 12 is dropped
// @phpstan-ignore-next-line
$constraints = $pageRepository->getDefaultConstraints($this->table);

Check failure on line 571 in Classes/Lib/Db.php

View workflow job for this annotation

GitHub Actions / Build PHP/TYPO3 (8.2, ^12)

Call to an undefined method TYPO3\CMS\Core\Domain\Repository\PageRepository::getDefaultConstraints().

Check failure on line 571 in Classes/Lib/Db.php

View workflow job for this annotation

GitHub Actions / Build PHP/TYPO3 (8.3, ^12)

Call to an undefined method TYPO3\CMS\Core\Domain\Repository\PageRepository::getDefaultConstraints().

Check failure on line 571 in Classes/Lib/Db.php

View workflow job for this annotation

GitHub Actions / Build PHP/TYPO3 (8.1, ^12)

Call to an undefined method TYPO3\CMS\Core\Domain\Repository\PageRepository::getDefaultConstraints().
$expressionBuilder = GeneralUtility::makeInstance(ConnectionPool::class)
->getQueryBuilderForTable($this->table)
Expand Down
7 changes: 0 additions & 7 deletions Tests/phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,5 @@ parameters:
- ../Classes
- ../Configuration
- ../Tests
reportUnmatchedIgnoredErrors: false
ignoreErrors:
- '#has unknown class Tpwd\\KeSearchPremium\\KeSearchPremium as its type\.#'
- '#PHPDoc tag @var for variable \$moduleData contains unknown class TYPO3\\CMS\\Backend\\Module\\ModuleData\.#'
- '#Call to method get\(\) on an unknown class TYPO3\\CMS\\Backend\\Module\\ModuleData\.#'
- '#Call to an undefined method TYPO3\\CMS\\Backend\\Template\\ModuleTemplate::assign\(\)\.#'
- '#Call to an undefined method TYPO3\\CMS\\Backend\\Template\\ModuleTemplate::renderResponse\(\)\.#'
- '#Class TYPO3\\CMS\\Backend\\View\\BackendViewFactory not found\.#'
- '#Access to constant ERROR on an unknown class TYPO3\\CMS\\Core\\Type\\ContextualFeedbackSeverity\.#'

0 comments on commit ffb3552

Please sign in to comment.