"jakub-onderka/php-parallel-lint": "0.9.2",
"justinrainbow/json-schema": "~3.0",
"mediawiki/mediawiki-codesniffer": "0.7.2",
+ "jetbrains/phpstorm-stubs": "dev-master",
"monolog/monolog": "~1.18.2",
"nikic/php-parser": "2.1.0",
"nmred/kafka-php": "0.1.5",
function_exists( 'register_postsend_function' ) ? [] : [ 'tests/phan/stubs/hhvm.php' ],
function_exists( 'wikidiff2_do_diff' ) ? [] : [ 'tests/phan/stubs/wikidiff.php' ],
class_exists( PEAR::class ) ? [] : [ 'tests/phan/stubs/mail.php' ],
+ class_exists( Memcached::class ) ? [] : [ 'tests/phan/stubs/memcached.php' ],
[
'maintenance/7zip.inc',
'maintenance/backupPrefetch.inc',
* This is useful for excluding hopelessly unanalyzable
* files that can't be removed for whatever reason.
*/
- 'exclude_file_list' => function_exists( 'xcache_get' ) ? [] : [
- // References xcache which probably isn't installed
- 'includes/libs/objectcache/XCacheBagOStuff.php'
- ],
+ 'exclude_file_list' => [],
/**
* A list of directories holding code that we want
--- /dev/null
+<?php
+
+/**
+ * The phpstorm stubs package includes the Memcached class with two parameters and docs saying
+ * that they are optional. Phan can not detect this and thus throws an error for a usage with
+ * no params. So we have this small stub just for the constructor to allow no params.
+ * @see https://secure.php.net/manual/en/memcached.construct.php
+ * @codingStandardsIgnoreFile
+ */
+
+class Memcached {
+
+ public function __construct() {
+ }
+
+}