You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When assigning a string to a static array in a test class, EA reports this as a fatal error, but only if this was done in the setUpBeforeClass method of phpunit. This is quite weird, but see:
The error is "[EA] Could provoke a PHP Fatal error ([] operator not supported for strings)".
If I rename setUpBeforeClass to something else or comment it out completely, the assignment is not reported as fatal:
Expected behaviour
The property type is defined as array and EA should not assume this to be a string for some reason.
Environment details
PhpStorm 2023.2.3 on Windows 10
Code in WSL (Ubuntu 20)
The text was updated successfully, but these errors were encountered:
Current behaviour
When assigning a string to a static array in a test class, EA reports this as a fatal error, but only if this was done in the
setUpBeforeClass
method of phpunit. This is quite weird, but see:The error is "[EA] Could provoke a PHP Fatal error ([] operator not supported for strings)".
If I rename
setUpBeforeClass
to something else or comment it out completely, the assignment is not reported as fatal:Expected behaviour
The property type is defined as
array
and EA should not assume this to be a string for some reason.Environment details
PhpStorm 2023.2.3 on Windows 10
Code in WSL (Ubuntu 20)
The text was updated successfully, but these errors were encountered: