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

Type Error // HelperUtility #32

Closed
jackd248 opened this issue Oct 5, 2023 · 2 comments
Closed

Type Error // HelperUtility #32

jackd248 opened this issue Oct 5, 2023 · 2 comments

Comments

@jackd248
Copy link

jackd248 commented Oct 5, 2023

Hej there,

thanks for the v12 support.

We got the following error, while using the render type.

Uncaught TYPO3 Exception: Blueways\BwIcons\Utility\HelperUtility::__construct(): Argument #1 ($pid) must be of type int, string given

The problems seems to be, that the pid is provided as string and not as int. I'm not able to find the correct spot, where the utility class will be constructed, other then the following line:

https://github.com/maikschneider/bw_icons/blob/development/Classes/Utility/CssUtility.php#L20

Maybe use some typecasting?

@maikschneider
Copy link
Owner

That's odd. The only place where I did not add typecasting is in the form element, however the return fields over there should be integers.

I added an additional check in the branch. Does this resolve the issue?

@jackd248
Copy link
Author

jackd248 commented Oct 9, 2023

Yes, that fixes our issue. Thanks so far.

@jackd248 jackd248 closed this as completed Oct 9, 2023
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

No branches or pull requests

2 participants