Skip to content

Commit 464079d

Browse files
committed
Remove break after goto to fix deadCode.unreachable error
1 parent 8b722d4 commit 464079d

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1585,7 +1585,6 @@ private function step_initial(): bool {
15851585
return $this->step();
15861586
}
15871587
goto initial_anything_else;
1588-
break;
15891588

15901589
/*
15911590
* > A comment token

‎tests/phpstan/baselines/deadCode.unreachable.neon‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ parameters:
5656
-
5757
message: '#^Unreachable statement \- code above always terminates\.$#'
5858
identifier: deadCode.unreachable
59-
count: 31
59+
count: 30
6060
path: ../../../src/wp-includes/html-api/class-wp-html-processor.php
6161
-
6262
message: '#^Unreachable statement \- code above always terminates\.$#'

0 commit comments

Comments
 (0)