X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=.phan%2Fconfig.php;h=0fdefe054d512bee9399d7c6fe5e613d9676cb67;hb=56f171b9586f56bd4f9eb4b0bd25859d56561c1e;hp=b1ca2a73f085593e9a62fb67f93f8165a75cfb22;hpb=3439c0007376adfddea2de9be105a37938aead56;p=lhc%2Fweb%2Fwiklou.git diff --git a/.phan/config.php b/.phan/config.php index b1ca2a73f0..0fdefe054d 100644 --- a/.phan/config.php +++ b/.phan/config.php @@ -101,9 +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", ] ); // This helps a lot in discovering bad code, but unfortunately it will always fail for @@ -111,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.