mirror of
https://github.com/danog/psalm.git
synced 2024-11-26 20:34:47 +01:00
Properly clear cache
This commit is contained in:
parent
0100ca2b8c
commit
6283553d19
@ -639,5 +639,6 @@ class FileChecker implements StatementsSource
|
||||
|
||||
ClassLikeChecker::clearCache();
|
||||
FunctionChecker::clearCache();
|
||||
StatementsChecker::clearCache();
|
||||
}
|
||||
}
|
||||
|
@ -5330,4 +5330,17 @@ class StatementsChecker
|
||||
{
|
||||
return isset($this->phantom_classes[$class_name]);
|
||||
}
|
||||
|
||||
public static function clearCache()
|
||||
{
|
||||
self::$method_call_index = [];
|
||||
self::$reflection_functions = [];
|
||||
|
||||
self::$this_assignments = [];
|
||||
self::$this_calls = [];
|
||||
|
||||
self::$mock_interfaces = [];
|
||||
|
||||
self::$user_constants = [];
|
||||
}
|
||||
}
|
||||
|
@ -101,7 +101,6 @@ class Php70Test extends PHPUnit_Framework_TestCase
|
||||
|
||||
public function testDefineArray()
|
||||
{
|
||||
$this->markTestIncomplete('Not yet supported');
|
||||
$stmts = self::$_parser->parse('<?php
|
||||
define("ANIMALS", [
|
||||
"dog",
|
||||
|
Loading…
Reference in New Issue
Block a user