Problem/Motivation

The @return of \Drupal\Tests\node\Traits\NodeCreationTrait::getNodeByTitle states:

   * @return \Drupal\node\NodeInterface
   *   A node entity matching $title.

However it can and will also return FALSE when a node with $title can not be found.

Steps to reproduce

Proposed resolution

Update PHPDocBlock

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

CommentFileSizeAuthor
#4 3337501-4.patch709 bytesspokje
#2 3337501-2.patch709 bytesspokje

Comments

Spokje created an issue. See original summary.

spokje’s picture

StatusFileSize
new709 bytes
spokje’s picture

Status: Active » Needs review
spokje’s picture

StatusFileSize
new709 bytes
smustgrave’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: +Needs Review Queue Initiative

Simple enough change

  • catch committed de20700e on 10.1.x
    Issue #3337501 by Spokje: Update @return in PHPDocBlock of...
catch’s picture

Version: 9.5.x-dev » 10.1.x-dev
Status: Reviewed & tested by the community » Fixed

Committed de20700 and pushed to 10.1.x. Thanks!

Status: Fixed » Closed (fixed)

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