Problem/Motivation

Should allow for nullability.

Steps to reproduce

phpstan results like:

Negated boolean expression is always false.

because it doesn't know it can return NULL.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Issue fork drupal-3360139

Command icon 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

bradjones1 created an issue. See original summary.

bradjones1’s picture

Status: Active » Needs review
smustgrave’s picture

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

Simple fix.

Version: 10.1.x-dev » 11.x-dev

Drupal core is moving towards using a “main” branch. As an interim step, a new 11.x branch has been opened, as Drupal.org infrastructure cannot currently fully support a branch named main. New developments and disruptive changes should now be targeted for the 11.x branch, which currently accepts only minor-version allowed changes. For more information, see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

longwave’s picture

Backported across all branches as a docs-only fix.

Committed and pushed 8b85a04407 to 11.x (10.2.x) and 8a32152fc7 to 10.1.x and 207c634852 to 10.0.x and e83fe5e99b to 9.5.x. Thanks!

longwave’s picture

Status: Reviewed & tested by the community » Fixed

  • longwave committed 207c6348 on 10.0.x
    Issue #3360139 by bradjones1: Phpdoc for ResourceTypeRepositoryInterface...

  • longwave committed 8a32152f on 10.1.x
    Issue #3360139 by bradjones1: Phpdoc for ResourceTypeRepositoryInterface...

  • longwave committed 8b85a044 on 11.x
    Issue #3360139 by bradjones1: Phpdoc for ResourceTypeRepositoryInterface...

  • longwave committed e83fe5e9 on 9.5.x
    Issue #3360139 by bradjones1: Phpdoc for ResourceTypeRepositoryInterface...

Status: Fixed » Closed (fixed)

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