Page MenuHomePhorge

PhpDoc: Replace non-standard dict type with array
ClosedPublic

Authored by aklapper on Tue, Jun 3, 18:10.

Details

Summary

Make static code analysis more correct (which does not also mean less noisy) by replacing "dict" and "dictionary" types in PhpDoc with what they actually are: an array.
The "dictionary" type is not mentioned in arcanist/src/parser/PhutilTypeSpec.php either, thus no side effects.

See also related discussions in https://we.phorge.it/D26037 and https://we.phorge.it/D26039#27821

Test Plan

Grep and read the code, use static code analysis.

Diff Detail

Repository
rP Phorge
Branch
phpdocKillDictType (branched from master)
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 2074
Build 2074: arc lint + arc unit

Event Timeline

aklapper requested review of this revision.Tue, Jun 3, 18:10
This revision is now accepted and ready to land.Tue, Jun 3, 20:44
amybones subscribed.

It's already accepted but yesssss

yesyes

PhpDoc: Replace non-standard pair type with array

Summary:
Make static code analysis more correct (which does not also mean less noisy) by replacing "pair" types in PhpDoc with what they actually are: an array.
The "pair" type is not mentioned in arcanist/src/parser/PhutilTypeSpec.php either, thus no side effects.

Test Plan:
Grep and read the code, use static code analysis.

^^ That was supposed to be a git rebase master (not sure why Arcanist proposed the default commit message instead of a by-default-empty "comment" message)