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 a non int/string key is provided from a generator dataprovider you get an error. This is to be expected. However the error does not make it obvious what went wrong.
Current behavior
vendor/bin/phpunit --debug
Warning: array_key_exists(): The first argument should be either a string or an integer in /project/vendor/phpunit/phpunit/src/Util/Annotation/DocBlock.php on line 438
I'd expect to get an error with a clear message, telling me that i'm using a non int/string key in a dataprovider, which is not supported. Prehaps with the type i am using.
Because the error mentions Util/Annotation/DocBlock.php we initially though phpunit was failing due to a wrong annotation somewhere.