Skip to content

Commit

Permalink
[BUGFIX]: Fix missing removal (#4039)
Browse files Browse the repository at this point in the history
* BUGFIX: Fix missing removal

Resolves: #3240

* [CI] Rector Rectify

---------

Co-authored-by: GitHub Action <[email protected]>
  • Loading branch information
sabbelasichon and actions-user authored Jan 24, 2024
1 parent f9d831f commit 6f5de39
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function refactor(Node $node): ?Node
{
if (! $this->nodeTypeResolver->isMethodStaticCallOrClassMethodObjectType(
$node,
new ObjectType('TYPO3\CMS\Extbase\Persistence\Generic\Typo3QuerySettings')
new ObjectType('TYPO3\\CMS\\Extbase\\Persistence\\Generic\\QuerySettingsInterface')
)) {
return null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

namespace TYPO3\CMS\Extbase\Persistence\Generic;

if (interface_exists('TYPO3\CMS\Extbase\Persistence\Generic\QuerySettingsInterface')) {
return;
}

interface QuerySettingsInterface
{

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
return;
}

class Typo3QuerySettings
class Typo3QuerySettings implements QuerySettingsInterface
{
/**
* @var int
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ $querySettings = new Typo3QuerySettings();
$querySettings->setLanguageMode();
$querySettings->setLanguageMode()->setLanguageUid(0);
$querySettings->setLanguageUid(0)->setLanguageMode()->getLanguageMode();
$querySettings->setLanguageMode('ignore');

?>
-----
Expand Down

0 comments on commit 6f5de39

Please sign in to comment.