Skip to content

Commit ba00cc9

Browse files
committed
Annotate non-empty-string
1 parent f3d1724 commit ba00cc9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎src/wp-includes/html-api/class-wp-html-tag-processor.php‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2215,7 +2215,8 @@ private function parse_all_attributes(): void {
22152215
break;
22162216
}
22172217

2218-
$attribute_start = $this->bytes_already_parsed;
2218+
$attribute_start = $this->bytes_already_parsed;
2219+
/** @phpstan-var non-empty-string $attribute_name */
22192220
$attribute_name = substr( $this->html, $attribute_start, $name_length );
22202221
$this->bytes_already_parsed += $name_length;
22212222

0 commit comments

Comments
 (0)