Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TASK] Fix SiteProvider fetch methods #757

Merged

Conversation

oskardydo
Copy link
Contributor

  • there was an error in line 99 before this change about illegal array offset because fetches returned empty array instead of results

- there was an error in line 99 before this change about illegal array offset because fetches returned empty array instead of results
@coveralls
Copy link

coveralls commented Aug 7, 2024

Pull Request Test Coverage Report for Build 10283157764

Details

  • 0 of 18 (0.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.2%) to 67.586%

Changes Missing Coverage Covered Lines Changed/Added Lines %
Classes/DataProcessing/RootSiteProcessing/SiteProvider.php 0 18 0.0%
Totals Coverage Status
Change from base Build 10109936443: -0.2%
Covered Lines: 1103
Relevant Lines: 1632

💛 - Coveralls

$pagesData = $stmt->fetchAllAssociative();
}
->andWhere(
$queryBuilder->expr()->eq('is_siteroot', $queryBuilder->createNamedParameter(1, \PDO::PARAM_INT)),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use \TYPO3\CMS\Core\Database\Connection::PARAM_INT

}
->andWhere(
$queryBuilder->expr()->eq('is_siteroot', $queryBuilder->createNamedParameter(1, \PDO::PARAM_INT)),
$queryBuilder->expr()->eq('pid', $queryBuilder->createNamedParameter($pid, \PDO::PARAM_INT)),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

\TYPO3\CMS\Core\Database\Connection::PARAM_INT

@lukaszuznanski lukaszuznanski merged commit a2bd9a5 into TYPO3-Headless:master Aug 14, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants