Skip to content

[CLEANUP] Improve code readability for AvailablePermissionSets#25

Open
moritz-ngo wants to merge 1 commit into
b13:mainfrom
kandoh-gmbh:main
Open

[CLEANUP] Improve code readability for AvailablePermissionSets#25
moritz-ngo wants to merge 1 commit into
b13:mainfrom
kandoh-gmbh:main

Conversation

@moritz-ngo

Copy link
Copy Markdown

This commit fixes the following error:

(1/1) TypeError
B13\PermissionSets\AvailablePermissionSets::backendGroupSelector(): Argument #2 ($parentObject) must be of type TYPO3\CMS\Backend\Form\FormDataProvider\TcaSelectItems, TYPO3\CMS\Core\DataHandling\ItemProcessingService given

Resolves #24

@bmack

bmack commented Jan 13, 2026

Copy link
Copy Markdown
Member

I assume this only happens in TYPO3 v14?

@moritz-ngo

Copy link
Copy Markdown
Author

I'm running TYPO3 v13.4.22

@achimfritz

Copy link
Copy Markdown
Contributor

can confirm the bug. I would prefer to drop second constructor argument $parentObject completely

@achimfritz

Copy link
Copy Markdown
Contributor

Hi @moritz-ngo , would you apply my suggestion, so we would merge your PR

This commit fixes the following error:
```
(1/1) TypeError
B13\PermissionSets\AvailablePermissionSets::backendGroupSelector(): Argument b13#2 ($parentObject) must be of type TYPO3\CMS\Backend\Form\FormDataProvider\TcaSelectItems, TYPO3\CMS\Core\DataHandling\ItemProcessingService given
```

Resolves b13#24
@moritz-ngo

Copy link
Copy Markdown
Author

I just saw, that the unnecessary $parentObject argument has been removed already… so this PR seems to be obsolete.

I just fixed a typo in the class' PhpDoc and made the code a bit easier to read, feel free to accept or close this PR – I'm fine with both :)

@moritz-ngo moritz-ngo changed the title [BUGFIX] Fix method signature when using single table view [CLEANUP] Improve code readability for AvailablePermissionSets Jul 7, 2026
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.

TypeError / Invalid method signature when using single table view

3 participants