mirror of
https://github.com/danog/psalm.git
synced 2025-01-21 21:31:13 +01:00
Remove stopOnFirstError config option, because it hasn’t worked for a while
Fixes #248
This commit is contained in:
parent
93ac3eaadb
commit
b0f3992f36
@ -1,7 +1,6 @@
|
||||
<?xml version="1.0"?>
|
||||
<psalm
|
||||
name="Example Psalm config with recommended defaults"
|
||||
stopOnFirstError="false"
|
||||
useDocblockTypes="true"
|
||||
totallyTyped="true"
|
||||
>
|
||||
|
@ -1,7 +1,6 @@
|
||||
<?xml version="1.0"?>
|
||||
<psalm
|
||||
name="Example Psalm config with recommended defaults"
|
||||
stopOnFirstError="false"
|
||||
useDocblockTypes="true"
|
||||
totallyTyped="false"
|
||||
>
|
||||
|
@ -1,7 +1,6 @@
|
||||
<?xml version="1.0"?>
|
||||
<psalm
|
||||
name="Example Psalm config with recommended defaults"
|
||||
stopOnFirstError="false"
|
||||
useDocblockTypes="true"
|
||||
totallyTyped="false"
|
||||
>
|
||||
|
@ -1,7 +1,6 @@
|
||||
<?xml version="1.0"?>
|
||||
<psalm
|
||||
name="Example Psalm config with recommended defaults"
|
||||
stopOnFirstError="false"
|
||||
useDocblockTypes="true"
|
||||
totallyTyped="false"
|
||||
>
|
||||
|
@ -1,7 +1,6 @@
|
||||
<?xml version="1.0"?>
|
||||
<psalm
|
||||
name="Example Psalm config with recommended defaults"
|
||||
stopOnFirstError="false"
|
||||
useDocblockTypes="true"
|
||||
totallyTyped="false"
|
||||
>
|
||||
|
@ -1,7 +1,6 @@
|
||||
<?xml version="1.0"?>
|
||||
<psalm
|
||||
name="Psalm for Psalm"
|
||||
stopOnFirstError="false"
|
||||
useDocblockTypes="true"
|
||||
totallyTyped="true"
|
||||
strictBinaryOperands="false"
|
||||
|
@ -49,13 +49,6 @@ class Config
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
/**
|
||||
* Whether or not to stop when the first error is seen
|
||||
*
|
||||
* @var bool
|
||||
*/
|
||||
public $stop_on_first_error = true;
|
||||
|
||||
/**
|
||||
* Whether or not to use types as defined in docblocks
|
||||
*
|
||||
@ -316,11 +309,6 @@ class Config
|
||||
|
||||
$config_xml = new SimpleXMLElement($file_contents);
|
||||
|
||||
if (isset($config_xml['stopOnFirstError'])) {
|
||||
$attribute_text = (string) $config_xml['stopOnFirstError'];
|
||||
$config->stop_on_first_error = $attribute_text === 'true' || $attribute_text === '1';
|
||||
}
|
||||
|
||||
if (isset($config_xml['useDocblockTypes'])) {
|
||||
$attribute_text = (string) $config_xml['useDocblockTypes'];
|
||||
$config->use_docblock_types = $attribute_text === 'true' || $attribute_text === '1';
|
||||
|
@ -108,10 +108,6 @@ class IssueBuffer
|
||||
self::$issues_data[] = $e->toArray(Config::REPORT_ERROR);
|
||||
}
|
||||
|
||||
if ($config->stop_on_first_error) {
|
||||
exit(1);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -20,7 +20,6 @@ class JsonOutputTest extends TestCase
|
||||
|
||||
$config = new TestConfig();
|
||||
$config->throw_exception = false;
|
||||
$config->stop_on_first_error = false;
|
||||
|
||||
$this->project_checker = new ProjectChecker(
|
||||
$config,
|
||||
|
@ -21,7 +21,6 @@ class ReportOutputTest extends TestCase
|
||||
|
||||
$config = new TestConfig();
|
||||
$config->throw_exception = false;
|
||||
$config->stop_on_first_error = false;
|
||||
|
||||
$this->project_checker = new ProjectChecker(
|
||||
$config,
|
||||
@ -39,7 +38,6 @@ class ReportOutputTest extends TestCase
|
||||
{
|
||||
$config = new TestConfig();
|
||||
$config->throw_exception = false;
|
||||
$config->stop_on_first_error = false;
|
||||
|
||||
// No exception
|
||||
foreach (['.xml', '.txt', '.json', '.emacs'] as $extension) {
|
||||
@ -67,7 +65,6 @@ class ReportOutputTest extends TestCase
|
||||
{
|
||||
$config = new TestConfig();
|
||||
$config->throw_exception = false;
|
||||
$config->stop_on_first_error = false;
|
||||
|
||||
new ProjectChecker(
|
||||
$config,
|
||||
|
Loading…
x
Reference in New Issue
Block a user