Problem/Motivation
Some params in MessengerInterface are marked as optional in documentation but have no default value in the function signature.
Proposed resolution
Remove "(optional)" in these cases.
Remaining tasks
Implement.
User interface changes
None.
Introduced terminology
None.
API changes
None.
Data model changes
None.
Release notes snippet
Issue fork drupal-3487014
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 11.x
compare
- 3487014-fix-documentation-for
changes, plain diff MR !10156
Comments
Comment #3
liam morlandComment #4
smustgrave commentedSeems pretty straight forward and looks like all $message have been updated.
Comment #5
quietone commentedThis was added in #2278383: Create an injectible service for drupal_set_message() where the (optional) was valid for drupal_set_message. Should this be restoring the default value instead? I have asked in committer slack about this.
Comment #12
longwaveThis is valid, the message is no longer optional.
drupal_set_message()with no arguments returned the static set of messages, now that is handled by a separate method in the messenger service.Backported down to 10.4.x as an eligible documentation fix.
Committed and pushed 4899db93d99 to 11.x and 8877da3b01b to 11.1.x and 46cf264bf32 to 10.5.x and 957c16fc138 to 10.4.x. Thanks!