Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
InlineBlockUsageInterface::getUsage
has a return type of object
however it can return FALSE if there is no usage.
Proposed resolution
Update documentation.
Issue fork drupal-3278314
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:
Comments
Comment #3
acbramley CreditAttribution: acbramley at PreviousNext for Service NSW commentedComment #4
tim.plunkettGreat, thanks!
Comment #5
alexpottI think we should file a issue to discuss changing \Drupal\Core\Database\StatementInterface::fetchObject() to state it only returns FALSE to match the behaviour of \PDOStatement::fetchObject(). But this is an improvement and FALSE is the value this returns when there's no usage, even for DBs using \Drupal\Core\Database\StatementPrefetch::fetchObject().
As a docs fix backported to 9.3.x
Committed and pushed cf7dac1848 to 10.0.x and a3562c9e38 to 9.5.x and d24d944fd5 to 9.4.x and 6ffe8b73c8 to 9.3.x. Thanks!
Comment #11
alexpottCreditting @dpi for merge request review.