mirror of
https://github.com/danog/psalm.git
synced 2024-11-30 04:39:00 +01:00
Merge pull request #7650 from orklah/totallytyped
deprecate totallyTyped
This commit is contained in:
commit
a3852b8a55
@ -2,7 +2,7 @@
|
||||
<psalm
|
||||
name="Psalm for Psalm"
|
||||
useDocblockTypes="true"
|
||||
totallyTyped="true"
|
||||
errorLevel=1
|
||||
strictBinaryOperands="false"
|
||||
rememberPropertyAssignmentsAfterCall="true"
|
||||
throwExceptionOnError="0"
|
||||
|
13
config.xsd
13
config.xsd
@ -97,7 +97,18 @@
|
||||
<xs:attribute name="resolveFromConfigFile" type="xs:boolean" default="true" />
|
||||
<xs:attribute name="strictBinaryOperands" type="xs:boolean" default="false" />
|
||||
<xs:attribute name="throwExceptionOnError" type="xs:boolean" default="false" />
|
||||
<xs:attribute name="totallyTyped" type="xs:boolean" default="false" />
|
||||
<xs:attribute name="totallyTyped" type="xs:boolean" default="false">
|
||||
<xs:annotation>
|
||||
<xs:documentation xml:lang="en">
|
||||
Setting `totallyTyped` to `"true"` is equivalent to setting `errorLevel` to `"1"`. Setting `totallyTyped` to `"false"` is equivalent to setting `errorLevel` to `"2"` and `reportMixedIssues` to `"false"`
|
||||
</xs:documentation>
|
||||
|
||||
<!-- note: for PHPStorm to mark the attribute as deprecated the doc entry has to be *single line* and start with the word `deprecated` -->
|
||||
<xs:documentation xml:lang="en">
|
||||
Deprecated. Replaced by `errorLevel` and `reportMixedIssues`.
|
||||
</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="errorLevel" type="xs:integer" default="2" />
|
||||
<xs:attribute name="reportMixedIssues" type="xs:boolean" default="true" />
|
||||
<xs:attribute name="useDocblockTypes" type="xs:boolean" default="true" />
|
||||
|
@ -814,7 +814,9 @@ class Config
|
||||
$deprecated_attributes = [
|
||||
'allowCoercionFromStringToClassConst',
|
||||
'allowPhpStormGenerics',
|
||||
'forbidEcho'
|
||||
'forbidEcho',
|
||||
'loadXdebugStub',
|
||||
'totallyTyped'
|
||||
];
|
||||
|
||||
$deprecated_elements = [
|
||||
|
@ -174,9 +174,7 @@ class ConfigFileTest extends TestCase
|
||||
{
|
||||
$noPlugins = trim('
|
||||
<?xml version="1.0"?>
|
||||
<psalm
|
||||
totallyTyped="false"
|
||||
>
|
||||
<psalm>
|
||||
<plugins>
|
||||
<pluginClass class="d\e\f"/>
|
||||
</plugins>
|
||||
@ -185,9 +183,7 @@ class ConfigFileTest extends TestCase
|
||||
|
||||
$abcEnabled = trim('
|
||||
<?xml version="1.0"?>
|
||||
<psalm
|
||||
totallyTyped="false"
|
||||
>
|
||||
<psalm>
|
||||
<plugins>
|
||||
<pluginClass class="a\b\c"/>
|
||||
<pluginClass class="d\e\f"/>
|
||||
|
@ -1,6 +1,5 @@
|
||||
<?xml version="1.0"?>
|
||||
<psalm
|
||||
totallyTyped="true"
|
||||
autoloader="autoloader.php"
|
||||
resolveFromConfigFile="true"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
|
1
tests/fixtures/DummyProject/psalm.xml
vendored
1
tests/fixtures/DummyProject/psalm.xml
vendored
@ -1,6 +1,5 @@
|
||||
<?xml version="1.0"?>
|
||||
<psalm
|
||||
totallyTyped="true"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns="https://getpsalm.org/schema/config"
|
||||
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
|
||||
|
1
tests/fixtures/ModularConfig/psalm.xml
vendored
1
tests/fixtures/ModularConfig/psalm.xml
vendored
@ -1,6 +1,5 @@
|
||||
<?xml version="1.0"?>
|
||||
<psalm
|
||||
totallyTyped="true"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns="https://getpsalm.org/schema/config"
|
||||
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
|
||||
|
1
tests/fixtures/SuicidalAutoloader/psalm.xml
vendored
1
tests/fixtures/SuicidalAutoloader/psalm.xml
vendored
@ -1,6 +1,5 @@
|
||||
<?xml version="1.0"?>
|
||||
<psalm
|
||||
totallyTyped="true"
|
||||
autoloader="autoloader.php"
|
||||
resolveFromConfigFile="true"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
|
Loading…
Reference in New Issue
Block a user