Skip to content

Commit 8827158

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 b63555c commit 8827158

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

tests/unit/DataValue/ValuesFinderTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@
2222
*/
2323
class ValuesFinderTest extends TestCase {
2424

25-
/** @var array */
26-
private static $propertyDataTypes = [
25+
private static array $propertyDataTypes = [
2726
'P23' => 'string',
2827
'P42' => 'url',
2928
'P44' => 'boolean',

0 commit comments

Comments
 (0)