Make WordPress Core

#63663 closed defect (bug) (fixed)

Improve documented return type for parsed blocks

Reported by: jeremyfelt Owned by: johnbillion
Priority: normal Milestone: 6.9
Component: General Version:
Severity: normal Keywords: has-patch
Cc: Focuses: docs

Description

The blockName of a parsed block can be either a string or null. This should be clarified wherever these are documented to improve static analysis compatibility.

Previously, [58084], which likely contains all of the locations. :)

Change History (5)

#1 @yashjawale
15 months ago

Thanks for submitting the issue on trac!

I'll start working on a patch to resolve this...

This ticket was mentioned in ​PR #9187 on ​WordPress/wordpress-develop by ​@pmbaldha.


15 months ago
#2

  • Keywords has-patch added; needs-patch removed

​@mukesh27 commented on ​PR #9187:


15 months ago
#3

Some issue it PHPCS that needs to fixed

#4 @johnbillion
15 months ago

  • Milestone Awaiting Review → 6.9
  • Owner set to johnbillion
  • Status new → reviewing

#5 @johnbillion
15 months ago

  • Resolution → fixed
  • Status reviewing → closed

In 60511:

Docs: Improve the documented return type for parsed blocks.

The blockName property can be null, for example when a section of HTML outside of a block is encountered. This corrects the docs to reflect that.

Props jeremyfelt, pmbaldha, johnbillion.

Fixes #63663

Note: See TracTickets for help on using tickets.