Skip to content

Commit

Permalink
chore: fix bug in createQuery constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
tlayh committed Sep 12, 2024
1 parent b3c0541 commit 5de7f6e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 17 deletions.
4 changes: 2 additions & 2 deletions Classes/Domain/Repository/EntryRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ public function findEntriesToCleanUp($secondsTillReset, $maxFailures, $restricti

$query->matching(
$query->logicalOr(
$query->logicalAnd($constraintsRestrictedEntries),
$query->logicalAnd($constraintsResettableEntries)
$query->logicalAnd(...$constraintsRestrictedEntries),
$query->logicalAnd(...$constraintsResettableEntries)
)
);

Expand Down
15 changes: 0 additions & 15 deletions code-quality/phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,6 @@ parameters:
count: 1
path: ../Classes/Domain/Repository/EntryRepository.php

-
message: "#^Parameter \\#1 \\.\\.\\.\\$constraints of method TYPO3\\\\CMS\\\\Extbase\\\\Persistence\\\\QueryInterface\\<TYPO3\\\\CMS\\\\Extbase\\\\DomainObject\\\\DomainObjectInterface\\>\\:\\:logicalAnd\\(\\) expects TYPO3\\\\CMS\\\\Extbase\\\\Persistence\\\\Generic\\\\Qom\\\\ConstraintInterface, array\\<int, TYPO3\\\\CMS\\\\Extbase\\\\Persistence\\\\Generic\\\\Qom\\\\ComparisonInterface\\> given\\.$#"
count: 2
path: ../Classes/Domain/Repository/EntryRepository.php

-
message: "#^Property Aoe\\\\FeloginBruteforceProtection\\\\Domain\\\\Service\\\\RestrictionIdentifierAbstract\\:\\:\\$identifierValue \\(string\\) in isset\\(\\) is not nullable\\.$#"
count: 1
Expand Down Expand Up @@ -100,11 +95,6 @@ parameters:
count: 1
path: ../Classes/Hooks/UserAuth/PostUserLookUp.php

-
message: "#^Anonymous variables in a \"\\$GLOBALS\\['TSFE'\\]\\-\\>\\.\\.\\.\" property fetch can lead to false dead property\\. Make sure the variable type is known$#"
count: 4
path: ../Classes/Service/AuthUser.php

-
message: "#^Property Aoe\\\\FeloginBruteforceProtection\\\\Service\\\\AuthUser\\:\\:\\$configuration \\(Aoe\\\\FeloginBruteforceProtection\\\\System\\\\Configuration\\) in isset\\(\\) is not nullable\\.$#"
count: 1
Expand All @@ -115,11 +105,6 @@ parameters:
count: 1
path: ../Classes/Service/AuthUser.php

-
message: "#^Property Aoe\\\\FeloginBruteforceProtection\\\\Service\\\\AuthUser\\:\\:\\$objectManager has unknown class TYPO3\\\\CMS\\\\Extbase\\\\Object\\\\ObjectManagerInterface as its type\\.$#"
count: 1
path: ../Classes/Service/AuthUser.php

-
message: "#^Property Aoe\\\\FeloginBruteforceProtection\\\\Service\\\\AuthUser\\:\\:\\$restrictionService \\(Aoe\\\\FeloginBruteforceProtection\\\\Domain\\\\Service\\\\RestrictionService\\) in isset\\(\\) is not nullable\\.$#"
count: 1
Expand Down

0 comments on commit 5de7f6e

Please sign in to comment.