Page MenuHomeDevCentral

Document File::from return value as static
ClosedPublic

Authored by dereckson on Jan 29 2020, 03:10.
Tags
None
Referenced Files
F9632187: D2164.id5454.diff
Tue, Jun 10, 16:38
F9623917: D2164.id.diff
Tue, Jun 10, 10:59
F9622787: D2164.id5453.diff
Tue, Jun 10, 10:07
F9622483: D2164.diff
Tue, Jun 10, 09:52
F9612517: D2164.id5453.diff
Tue, Jun 10, 01:53
F9609064: D2164.id5454.diff
Mon, Jun 9, 23:21
Unknown Object (File)
Wed, Jun 4, 03:28
Unknown Object (File)
Tue, May 20, 23:45
Subscribers
None

Details

Summary

This change allows Phan to correctly analyze the methods availability.

This is a follow-up for 7266cfd77f31.

Test Plan

Without the change, Phan outputs:

$ phan
src/Registration/PSR4/Autoloader.php:51 PhanUndeclaredMethod Call to undeclared method \Keruald\OmniTools\IO\File::tryInclude
tests/Reflection/CodeFileTest.php:41 PhanUndeclaredMethod Call to undeclared method \Keruald\OmniTools\IO\File::canBeIncluded

After the change, it doesn't prints these messages.

Diff Detail

Repository
rKOT Keruald OmniTools
Lint
Lint Passed
Unit
Test Failures
Branch
master
Build Status
Buildable 3365
Build 3614: arc lint + arc unit

Event Timeline

dereckson created this revision.
This revision is now accepted and ready to land.Jan 29 2020, 03:11
This revision was landed with ongoing or failed builds.Jan 29 2020, 03:11
This revision was automatically updated to reflect the committed changes.