Page MenuHomeDevCentral

Improve documentation and code types coherence
ClosedPublic

Authored by dereckson on Dec 26 2016, 02:55.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Dec 14, 13:54
Unknown Object (File)
Thu, Dec 12, 05:33
Unknown Object (File)
Tue, Dec 10, 02:31
Unknown Object (File)
Sun, Dec 8, 17:34
Unknown Object (File)
Sun, Dec 8, 01:41
Unknown Object (File)
Fri, Dec 6, 09:55
Unknown Object (File)
Fri, Dec 6, 03:23
Unknown Object (File)
Wed, Dec 4, 21:14
Subscribers

Details

Summary

We use the phan static analysis tool to detect divergences
between types in the documentation and the source code.

Types given in absolute namespace notation are now prepended with \.
When the type is in the current namespace, relative notation is used.

The new PHP 7.1 pseudo-type iterable has been chosen to use with
PhabricatorStory, as there is no need for the payload sent by
Phabricator API to be an array.

This is no-op as only method signatures and documentation is updated.

Test Plan

phan | grep PhanTypeMismatch

Diff Detail

Repository
rNOTIF Notifications center
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

More fixes, params and properties too

dereckson retitled this revision from Improve return types doc to Improve documentation and code types coherence .
dereckson edited the summary of this revision. (Show Details)
dereckson edited the test plan for this revision. (Show Details)
dereckson edited the summary of this revision. (Show Details)
dereckson added a reviewer: dereckson.
This revision is now accepted and ready to land.Dec 27 2016, 20:48
This revision was automatically updated to reflect the committed changes.