Page MenuHomeDevCentral

Document File::from return value as static
ClosedPublic

Authored by dereckson on Jan 29 2020, 03:10.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Apr 21, 22:38
Unknown Object (File)
Fri, Apr 19, 20:03
Unknown Object (File)
Thu, Apr 18, 03:47
Unknown Object (File)
Sun, Apr 14, 14:59
Unknown Object (File)
Sun, Apr 14, 02:03
Unknown Object (File)
Sat, Apr 13, 11:33
Unknown Object (File)
Sat, Apr 13, 02:10
Unknown Object (File)
Tue, Apr 9, 18:03
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 Not Applicable
Unit
Tests Not Applicable

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.