-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Client of WebTestCase throw error by test path like two slash '//' or more #46900
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
Comments
see #46905 for a fix |
|
Is I would use |
As a Tester, I expect the Client of WebTestCase to return the same Response as the Browser receives from the App.
As a Developer, I prefer not to use query parameters but rather use the ability for the Symfony Routing component to put data into the url path as a slug ( |
addressed now too |
Symfony version(s) affected
4.4
Description
Client of WebTestCase throw error by test path like two slash '//' or more:
$client->request('GET', '//');
Error messages
php 7.4:
array_replace(): Expected parameter 2 to be an array, bool given
php 8.1:
TypeError: array_replace(): Argument #2 must be of type array, bool given
Example console output on php 8.1
How to reproduce
Possible Solution
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: