Skip to content

Commit 5187983

Browse files
coddersWMDE bot
authored andcommitted
Replace phpdoc types with type annotations for private members
Change Iece78d81c33f9ac8d50b8e2d7bb9f9a06d2f11a4 introduced type annotations for some private class properties to quiet a PHPCS sniff (MissingDocumentationPrivate). Since mediawiki-codesniffer v41 (T325201), the FunctionComment and Cleanup PropertyDocumentation sniffs are more lenient about allowing missing doc comments as long as information is provided by static type. Replace the phpdoc annotations with static types. Bug: T330644 Change-Id: I421284245c289208a209acfbd710491dacaf8cbc
1 parent 84de428 commit 5187983

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/Internal/MapValueHasher.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
*/
1717
class MapValueHasher {
1818

19-
/** @var bool */
20-
private $isOrdered;
19+
private bool $isOrdered;
2120

2221
public function __construct( $holdOrderIntoAccount = false ) {
2322
$this->isOrdered = $holdOrderIntoAccount;

0 commit comments

Comments
 (0)