Skip to content

Always assert request URL path starts with '/'#2110

Merged
mvorisek merged 5 commits intodevelopfrom
no_get_mutate_in_testing
Sep 18, 2023
Merged

Always assert request URL path starts with '/'#2110
mvorisek merged 5 commits intodevelopfrom
no_get_mutate_in_testing

Conversation

@mvorisek
Copy link
Copy Markdown
Member

@mvorisek mvorisek commented Sep 18, 2023

normally, request is created from $_SERVER, $_GET, ... globals (or passed explicitly) and thus this PR should have no effect on developer

fixes TODO in App::url

App::$request should be readonly, thus checking in the App constructor should be enough

@mvorisek mvorisek force-pushed the no_get_mutate_in_testing branch 4 times, most recently from 5c559f7 to 31cd75c Compare September 18, 2023 16:49
@mvorisek mvorisek force-pushed the no_get_mutate_in_testing branch 2 times, most recently from 35aed49 to a61cf9e Compare September 18, 2023 17:34
@mvorisek mvorisek marked this pull request as ready for review September 18, 2023 17:41
@mvorisek mvorisek merged commit 1d6804f into develop Sep 18, 2023
@mvorisek mvorisek deleted the no_get_mutate_in_testing branch September 18, 2023 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant