Skip to content

Commit 5f10bfb

Browse files
committed
[PHPStan]: ignore early terminations for i18n strings
1 parent 6a209c6 commit 5f10bfb

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

src/wp-admin/about.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,9 +298,12 @@
298298

299299
<?php
300300

301-
// These are strings we may use to describe maintenance/security releases, where we aim for no new strings.
302301
return;
303302

303+
/**
304+
* These are strings we may use to describe maintenance/security releases, where we aim for no new strings.
305+
* @phpstan-ignore deadCode.unreachable
306+
*/
304307
__( 'Maintenance Release' );
305308
__( 'Maintenance Releases' );
306309

src/wp-admin/credits.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,10 @@
123123

124124
return;
125125

126-
// These are strings returned by the API that we want to be translatable.
126+
/**
127+
* These are strings returned by the API that we want to be translatable.
128+
* @phpstan-ignore deadCode.unreachable
129+
*/
127130
__( 'Project Leaders' );
128131
/* translators: %s: The current WordPress version number. */
129132
__( 'Core Contributors to WordPress %s' );

0 commit comments

Comments
 (0)