Page MenuHomePhabricator

Add phan stubs for php extensions redis and imagick
Closed, ResolvedPublic

Description

The php extensions redis and imagick are needed to run phan without failures on local machine.
When the extensions are not installed in the used php version, than errors are reported.
Phan stubs should be added for both extensions and used when the classes are not available from php itself

Or it is enough to list them under suggest in composer.json?

Event Timeline

A stub for pcntl should be included, because windows user cannot install that extension.

Also a stub for sockets extension is needed:

MSG_EOR (integer)
Not available on Windows platforms.
MSG_EOF (integer)
Not available on Windows platforms.

Change 517718 had a related patch set uploaded (by Legoktm; owner: Legoktm):
[mediawiki/core@master] phan: Add internal stubs for imagick, pcntl, redis & sockets

https://gerrit.wikimedia.org/r/517718

Change 517718 merged by jenkins-bot:
[mediawiki/core@master] phan: Add internal stubs for imagick, pcntl, redis & sockets

https://gerrit.wikimedia.org/r/517718