Skip to content

Conversation

@Jako
Copy link

@Jako Jako commented Dec 2, 2022

What does it do?/Why is it needed?

If the option emailSelectToName is not set, the option emailSelectTo is used. emailSelectTo was exploded before it was assigned to emailSelectToName. After that it is exploded again which causes the following issue in PHP 8.

PHP Fatal error:  Uncaught TypeError: explode(): Argument #2 ($string) must be of type string, array given in /…/core/components/formit/src/FormIt/Hook/Email.php:99

The patch just reorders the assignment.

If the option emailSelectToName is not set, the option emailSelectTo is used. emailSelectTo was exploded before it was assigned to emailSelectToName. After that it is exploded again which causes the following issue in PHP 8. The patch just reorders the assignment.

```
PHP Fatal error:  Uncaught TypeError: explode(): Argument Sterc#2 ($string) must be of type string, array given in /…/core/components/formit/src/FormIt/Hook/Email.php:99
```
@MrRoco MrRoco merged commit 3ff68a4 into Sterc:develop Feb 10, 2024
@Jako Jako deleted the patch-1 branch February 10, 2024 14:06
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.

2 participants