mirror of
https://github.com/danog/psalm.git
synced 2024-11-26 20:34:47 +01:00
Fix #3193 - no longer add totallyTyped="true" to config
This commit is contained in:
parent
bb46c30e38
commit
8bcf38b8f6
@ -30,7 +30,6 @@ class Creator
|
||||
{
|
||||
const TEMPLATE = '<?xml version="1.0"?>
|
||||
<psalm
|
||||
totallyTyped="true"
|
||||
errorLevel="1"
|
||||
resolveFromConfigFile="true"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
@ -66,14 +65,6 @@ class Creator
|
||||
$template
|
||||
);
|
||||
|
||||
if ($level > 1) {
|
||||
$template = str_replace(
|
||||
'totallyTyped="true"',
|
||||
'totallyTyped="false"',
|
||||
$template
|
||||
);
|
||||
}
|
||||
|
||||
$template = str_replace(
|
||||
'errorLevel="1"',
|
||||
'errorLevel="' . $level . '"',
|
||||
|
@ -32,7 +32,6 @@ class CreatorTest extends \Psalm\Tests\TestCase
|
||||
|
||||
$this->assertSame('<?xml version="1.0"?>
|
||||
<psalm
|
||||
totallyTyped="true"
|
||||
errorLevel="1"
|
||||
resolveFromConfigFile="true"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
|
Loading…
Reference in New Issue
Block a user