mirror of
https://github.com/danog/psalm.git
synced 2024-11-27 04:45:20 +01:00
72848477c2
And add granularity to InvalidPropertyAssignment* issues
29 lines
730 B
PHP
29 lines
730 B
PHP
<?php
|
|
namespace Psalm\Tests;
|
|
|
|
use Psalm\Config;
|
|
|
|
class TestConfig extends Config
|
|
{
|
|
/**
|
|
* @psalm-suppress PossiblyNullPropertyAssignmentValue because cache_directory isn't strictly nullable
|
|
*/
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
|
|
$this->throw_exception = true;
|
|
$this->use_docblock_types = true;
|
|
$this->totally_typed = true;
|
|
$this->cache_directory = null;
|
|
|
|
$this->base_dir = getcwd() . DIRECTORY_SEPARATOR;
|
|
|
|
$this->project_files = new Config\ProjectFileFilter(true);
|
|
$this->project_files->addDirectory($this->base_dir . 'src');
|
|
|
|
$this->collectPredefinedConstants();
|
|
$this->collectPredefinedFunctions();
|
|
}
|
|
}
|