According to API documentation and comment standards, "@return bool" is the proper way to document a function that returns a boolean value. Most of core does this, some functions however use "@return boolean". This patch fixes those wrong instances, and affects only documentation comments.

Beta phase evaluation

Reference: https://www.drupal.org/core/beta-changes
Unfrozen changes Unfrozen because it only changes documentation.
CommentFileSizeAuthor
return-boolean.patch13.41 KBtr

Comments

dawehner’s picture

Status: Needs review » Reviewed & tested by the community

Small steps +1

jhodgdon’s picture

+1, thanks!

webchick’s picture

Status: Reviewed & tested by the community » Fixed

Nice catch!

Committed and pushed to 8.0.x. Thanks!

  • webchick committed 100f2a2 on 8.0.x
    Issue #2532646 by TR: "@return boolean" is wrong, use "@return bool"
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.