Skip to content

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

Merged
mvorisek merged 9 commits intodevelopfrom
no_null_post_params_fallback
May 28, 2023
Merged

Always emit an exception when some expected POST param is not set#2059
mvorisek merged 9 commits intodevelopfrom
no_null_post_params_fallback

Conversation

@mvorisek
Copy link
Copy Markdown
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
@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

Development

Successfully merging this pull request may close these issues.

1 participant