From: Kunal Mehta Date: Tue, 18 Jun 2019 19:19:37 +0000 (-0400) Subject: phan: Add internal stubs for imagick, pcntl, redis & sockets X-Git-Tag: 1.34.0-rc.0~1350^2 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/?a=commitdiff_plain;h=e26d8176514f344316d968192b405518f527ec9a;p=lhc%2Fweb%2Fwiklou.git phan: Add internal stubs for imagick, pcntl, redis & sockets Phan will automatically use these stubs if the extensions are not installed. Also added a brief README for how to generate the stubs in the first place. Bug: T224893 Change-Id: I1d31d03801fbc7b18dfc758453c95439acd96d19 --- diff --git a/.phan/config.php b/.phan/config.php index 3478977ba6..8746ada384 100644 --- a/.phan/config.php +++ b/.phan/config.php @@ -43,8 +43,12 @@ $cfg['file_list'] = array_merge( ); $cfg['autoload_internal_extension_signatures'] = [ + 'imagick' => '.phan/internal_stubs/imagick.phan_php', 'memcached' => '.phan/internal_stubs/memcached.phan_php', 'oci8' => '.phan/internal_stubs/oci8.phan_php', + 'pcntl' => '.phan/internal_stubs/pcntl.phan_php', + 'redis' => '.phan/internal_stubs/redis.phan_php', + 'sockets' => '.phan/internal_stubs/sockets.phan_php', 'sqlsrv' => '.phan/internal_stubs/sqlsrv.phan_php', 'tideways' => '.phan/internal_stubs/tideways.phan_php', ]; diff --git a/.phan/internal_stubs/README b/.phan/internal_stubs/README new file mode 100644 index 0000000000..c57d596013 --- /dev/null +++ b/.phan/internal_stubs/README @@ -0,0 +1,5 @@ +See for +how to generate internal stubs for phan. + +The stubs should be generated using the PHP version that is our lowest +requirement. diff --git a/.phan/internal_stubs/imagick.phan_php b/.phan/internal_stubs/imagick.phan_php new file mode 100644 index 0000000000..c4f355bce2 --- /dev/null +++ b/.phan/internal_stubs/imagick.phan_php @@ -0,0 +1,1204 @@ +