X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=.phan%2Fconfig.php;h=0fdefe054d512bee9399d7c6fe5e613d9676cb67;hb=7ac10d4b6b1f04715a737964c4fd0202d4ebbc39;hp=fc775fe5fe5ba3998b0bebca165dd9823909eb51;hpb=f5360c82b810a05b35e8de3f983ecf2deea1961a;p=lhc%2Fweb%2Fwiklou.git diff --git a/.phan/config.php b/.phan/config.php index fc775fe5fe..0fdefe054d 100644 --- a/.phan/config.php +++ b/.phan/config.php @@ -101,11 +101,6 @@ $cfg['suppress_issue_types'] = array_merge( $cfg['suppress_issue_types'], [ //after dropping HHVM // approximate error count: 110 "PhanParamTooMany", // False positives with variargs. Unsuppress after dropping HHVM - - // approximate error count: 45 - "PhanTypeMismatchArgument", - // approximate error count: 693 - "PhanUndeclaredProperty", ] ); // This helps a lot in discovering bad code, but unfortunately it will always fail for @@ -113,6 +108,10 @@ $cfg['suppress_issue_types'] = array_merge( $cfg['suppress_issue_types'], [ // @todo Enable when the issue above is resolved and we update our config! $cfg['redundant_condition_detection'] = false; +// Do not use aliases in core. +// Use the correct name, because we don't need backward compatibility +$cfg['enable_class_alias_support'] = false; + $cfg['ignore_undeclared_variables_in_global_scope'] = true; // @todo It'd be great if we could just make phan read these from DefaultSettings, to avoid // duplicating the types.