Skip to content
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

Always emit an exception when some expected POST param is not set #2059

Merged
merged 9 commits into from
May 28, 2023

Conversation

mvorisek
Copy link
Member

@mvorisek mvorisek commented May 28, 2023

$_POST[$k] ?? null fallback is unwanted as it can signal some POST params not passed correctly.

(a php notice is emit and it is converted to exception by our error handler)

When form is generated using Form or other atk4/ui components, the params should be always set and no BC break should be implied.

@mvorisek mvorisek force-pushed the no_null_post_params_fallback branch from 5cb9f98 to b90c21f Compare May 28, 2023 18:47
@mvorisek mvorisek marked this pull request as ready for review May 28, 2023 18:55
@mvorisek mvorisek merged commit a447386 into develop May 28, 2023
45 checks passed
@mvorisek mvorisek deleted the no_null_post_params_fallback branch May 28, 2023 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant