Bump phan to 1.3.5 and enable on PHP 7.2 7.3#35817
Bump phan to 1.3.5 and enable on PHP 7.2 7.3#35817phil-davis wants to merge 3 commits intomasterfrom
Conversation
|
Backport |
|
@patrickjahns @DeepDiver1975 or somebody, please review. |
7be89d9 to
eed6a97
Compare
Codecov Report
@@ Coverage Diff @@
## master #35817 +/- ##
============================================
- Coverage 65.8% 65.8% -0.01%
- Complexity 18760 18819 +59
============================================
Files 1229 1228 -1
Lines 70856 71010 +154
Branches 1289 1289
============================================
+ Hits 46626 46726 +100
- Misses 23852 23906 +54
Partials 378 378
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #35817 +/- ##
============================================
- Coverage 67.18% 65.78% -1.41%
- Complexity 18760 18765 +5
============================================
Files 1168 1229 +61
Lines 63575 70888 +7313
Branches 0 1289 +1289
============================================
+ Hits 42716 46633 +3917
- Misses 20859 23877 +3018
- Partials 0 378 +378
Continue to review full report at Codecov.
|
eed6a97 to
bbb73f2
Compare
|
This got stupid javascript error in the first drone job. Most webUI tests also fail - seems to be some JavaScript missing (not loading properly) There seems to be something wrong with the core |
|
Closing this. The |
Description
phanto 1.3.5 (the latest version 1 release)PhanUndeclaredMethodthat it now reportsphanagain on PHP 7.2 and 7.3 (because1.3.5works!)Some references:
https://github.com/phan/phan/wiki/Annotating-Your-Source-Code
https://www.mediawiki.org/wiki/Continuous_integration/Phan - see "Known Problems" section at end
wikimedia/mediawiki-libs-Zest@a702451#diff-5fc3458bed5c0e0a0872b333c9564a1eR302 - some examples
phan1.3.5 reported lots ofPhanUndeclaredMethodFor many of these, it just does not understand the
@varin-line docblock, so it does not know accurately what is the class of the object. Becausephanparses the AST it needs information that gets to the AST. For that, I use@phan-varto tell it the object class. Often it was very easy, because there was already a doc-block style declaration to copy from - e.g. https://github.com/owncloud/core/pull/35817/files#diff-b1ad5b2a5860ff4172069616cfc3df01R63For others, I had to sort out what particular class is in place at the time.
In some places the code looks dodgy, so I put a "ToDo" or "FixMe" comment and
@phan-suppress-next-line PhanUndeclaredMethodso we can get this passing and a developer can come back to those and see what needs to be done.Related Issue
#35697
Motivation and Context
Get
phanworking again on PHP 7.2 and 7.3Have a later version of
phanto catch more stuff more reliably.How Has This Been Tested?
Local
make test-php-phanTypes of changes
Checklist:
Open tasks: