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

ArrayArrayFactory: Set #limit_validation_errors to [] instead of TRUE #84

Merged
merged 1 commit into from
Jan 30, 2025

Conversation

dontub
Copy link
Collaborator

@dontub dontub commented Jan 30, 2025

If #limit_validation_errors is not FALSE Drupal expects an array and tries to iterate over it. Using TRUE results in a PHP warning. https://git.drupalcode.org/project/drupal/-/blob/11.1.1/core/lib/Drupal/Core/Form/FormValidator.php?ref_type=tags#L150

…`TRUE`

If `#limit_validation_errors` is not `FALSE` Drupal expects an array and
tries to iterate over it. Using `TRUE` results in a PHP warning.
@dontub dontub merged commit 61e06bd into main Jan 30, 2025
14 checks passed
@dontub dontub deleted the fix-php-warning-limit_validation_errors branch January 30, 2025 10:17
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.

1 participant