HomeDevCentral

Document File::from return value as static

Description

Document File::from return value as static

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.

Reviewers: dereckson

Reviewed By: dereckson

Differential Revision: https://devcentral.nasqueron.org/D2164

Details

Provenance
derecksonAuthored on Jan 29 2020, 03:07
derecksonPushed on Jan 29 2020, 03:11
Reviewer
dereckson
Differential Revision
D2164: Document File::from return value as static
Parents
rKOT1ffeca408eaa: Detect whitespaces issue with Phan
Branches
Unknown
Tags
Unknown