Better DX error handling when misuse of SymfonyExtension config #29
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue
As a dummy symfony user, when I don't use the
MinkExtension
correctly with the following configwe have the following PHP fatal error :
Reproduce
Solution
Checking that the config is an array, so we get this error instead :
![mink](https://private-user-images.githubusercontent.com/8001284/335485112-f5618fa1-7121-435e-8a01-2c7edc195760.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk4Mzg5NTIsIm5iZiI6MTczOTgzODY1MiwicGF0aCI6Ii84MDAxMjg0LzMzNTQ4NTExMi1mNTYxOGZhMS03MTIxLTQzNWUtOGEwMS0yYzdlZGMxOTU3NjAucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxOCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMThUMDAzMDUyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NjQ2MDE1NjcyZDdjMGUyYjAwNmVhNzY0YWYxMWY4OGZjNDk1NGFhNTExNzQ0ZDljMDE0NWNmNzM3MDEyZjkzNiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.StVNtD1QE_vS2p-If4X_206ZN_3csQS85fIP_f5M4D0)