2017-07-25 22:11:02 +02:00
|
|
|
<?php
|
2021-12-15 04:58:32 +01:00
|
|
|
|
2023-10-19 14:16:41 +02:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
2018-11-12 16:57:05 +01:00
|
|
|
namespace Psalm\Tests\Internal\Provider;
|
2017-07-25 22:11:02 +02:00
|
|
|
|
2021-12-03 20:11:20 +01:00
|
|
|
use Psalm\Internal\Provider\ParserCacheProvider;
|
|
|
|
|
|
|
|
class FakeParserCacheProvider extends ParserCacheProvider
|
2017-07-25 22:11:02 +02:00
|
|
|
{
|
2018-10-16 21:59:11 +02:00
|
|
|
public function __construct()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2020-09-13 22:39:06 +02:00
|
|
|
public function loadStatementsFromCache(string $file_path, int $file_modified_time, string $file_content_hash): ?array
|
2017-07-25 22:11:02 +02:00
|
|
|
{
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
2020-09-13 22:39:06 +02:00
|
|
|
public function loadExistingStatementsFromCache(string $file_path): ?array
|
2018-09-28 22:18:45 +02:00
|
|
|
{
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
2020-09-12 17:24:05 +02:00
|
|
|
public function saveStatementsToCache(string $file_path, string $file_content_hash, array $stmts, bool $touch_only): void
|
2017-07-25 22:11:02 +02:00
|
|
|
{
|
|
|
|
}
|
2018-09-28 22:18:45 +02:00
|
|
|
|
2020-09-12 17:24:05 +02:00
|
|
|
public function loadExistingFileContentsFromCache(string $file_path): ?string
|
2018-09-28 22:18:45 +02:00
|
|
|
{
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
2020-09-12 17:24:05 +02:00
|
|
|
public function cacheFileContents(string $file_path, string $file_contents): void
|
2018-09-28 22:18:45 +02:00
|
|
|
{
|
|
|
|
}
|
2020-09-14 15:56:39 +02:00
|
|
|
|
2022-09-08 23:57:12 +02:00
|
|
|
public function deleteOldParserCaches(float $time_before): int
|
|
|
|
{
|
|
|
|
$this->existing_file_content_hashes = null;
|
|
|
|
$this->new_file_content_hashes = [];
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2020-09-14 15:56:39 +02:00
|
|
|
public function saveFileContentHashes(): void
|
|
|
|
{
|
|
|
|
}
|
2017-07-25 22:11:02 +02:00
|
|
|
}
|