Skip to content

Commit b8023f9

Browse files
committed
update phan config
1 parent 552b487 commit b8023f9

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.phan/config.php

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
* of the phan executable or a path passed in via the CLI
2525
* '-d' flag.
2626
*/
27-
return [
27+
$config = [
2828

2929
// If true, missing properties will be created when
3030
// they are first seen. If false, we'll report an
@@ -232,12 +232,11 @@
232232
'DuplicateArrayKeyPlugin',
233233
'PregRegexCheckerPlugin',
234234
'PrintfCheckerPlugin',
235-
// NOTE: src/Phan/Language/Internal/FunctionSignatureMap.php mixes value without key as return type with values having keys deliberately.
236-
// '.phan/plugins/DuplicateArrayKeyPlugin.php',
237-
238-
// NOTE: This plugin only produces correct results when
239-
// Phan is run on a single core (-j1).
240-
// '.phan/plugins/UnusedSuppressionPlugin.php',
241235
],
242236

243237
];
238+
$unusedVariablePlugin = __DIR__ . '/../../PhanUnusedVariable/src/UnusedVariablePlugin.php';
239+
//if (file_exists($unusedVariablePlugin)) {
240+
$config['plugins'][] = $unusedVariablePlugin;
241+
//}
242+
return $config;

0 commit comments

Comments
 (0)