mirror of
https://github.com/danog/psalm.git
synced 2024-12-03 10:07:52 +01:00
Update baseline
This commit is contained in:
parent
40c68f864d
commit
5b4f012270
@ -397,6 +397,9 @@
|
||||
</PossiblyUndefinedIntArrayOffset>
|
||||
</file>
|
||||
<file src="src/Psalm/Internal/Type/Comparator/AtomicTypeComparator.php">
|
||||
<ComplexMethod occurrences="1">
|
||||
<code>isContainedBy</code>
|
||||
</ComplexMethod>
|
||||
<PossiblyUndefinedIntArrayOffset occurrences="2">
|
||||
<code>$array->properties[0]</code>
|
||||
<code>$array->properties[0]</code>
|
||||
@ -468,11 +471,6 @@
|
||||
<code>$type_tokens[$i - 2]</code>
|
||||
</PossiblyInvalidArrayOffset>
|
||||
</file>
|
||||
<file src="src/Psalm/Storage/Assertion/HasArrayKey.php">
|
||||
<PossiblyUnusedMethod occurrences="1">
|
||||
<code>__construct</code>
|
||||
</PossiblyUnusedMethod>
|
||||
</file>
|
||||
<file src="src/Psalm/Storage/ClassConstantStorage.php">
|
||||
<MutableDependency occurrences="1">
|
||||
<code>CustomMetadataTrait</code>
|
||||
@ -487,10 +485,9 @@
|
||||
</ImpureMethodCall>
|
||||
</file>
|
||||
<file src="src/Psalm/Type.php">
|
||||
<ImpureMethodCall occurrences="2">
|
||||
<code>getListKey</code>
|
||||
<code>getListKey</code>
|
||||
</ImpureMethodCall>
|
||||
<ImpureStaticProperty occurrences="1">
|
||||
<code>self::$listKey</code>
|
||||
</ImpureStaticProperty>
|
||||
</file>
|
||||
<file src="src/Psalm/Type/Atomic.php">
|
||||
<ImpureMethodCall occurrences="12">
|
||||
@ -541,6 +538,11 @@
|
||||
<code>getMostSpecificTypeFromBounds</code>
|
||||
</ImpureMethodCall>
|
||||
</file>
|
||||
<file src="src/Psalm/Type/Atomic/TCallableList.php">
|
||||
<DeprecatedClass occurrences="1">
|
||||
<code>TNonEmptyList</code>
|
||||
</DeprecatedClass>
|
||||
</file>
|
||||
<file src="src/Psalm/Type/Atomic/TClassString.php">
|
||||
<ImpureMethodCall occurrences="1">
|
||||
<code>replace</code>
|
||||
@ -563,7 +565,12 @@
|
||||
</ImpureMethodCall>
|
||||
</file>
|
||||
<file src="src/Psalm/Type/Atomic/TKeyedArray.php">
|
||||
<ImpureMethodCall occurrences="14">
|
||||
<DeprecatedClass occurrences="3">
|
||||
<code>TList</code>
|
||||
<code>new TList($this->getGenericValueType())</code>
|
||||
<code>new TNonEmptyList($this->getGenericValueType())</code>
|
||||
</DeprecatedClass>
|
||||
<ImpureMethodCall occurrences="13">
|
||||
<code>combine</code>
|
||||
<code>combine</code>
|
||||
<code>combineUnionTypes</code>
|
||||
@ -573,7 +580,6 @@
|
||||
<code>combineUnionTypes</code>
|
||||
<code>combineUnionTypes</code>
|
||||
<code>combineUnionTypes</code>
|
||||
<code>getListKey</code>
|
||||
<code>replace</code>
|
||||
<code>replace</code>
|
||||
<code>replace</code>
|
||||
@ -591,6 +597,26 @@
|
||||
<code>$this->properties[0]</code>
|
||||
<code>$this->properties[0]</code>
|
||||
</PossiblyUndefinedIntArrayOffset>
|
||||
<PossiblyUnusedMethod occurrences="1">
|
||||
<code>getList</code>
|
||||
</PossiblyUnusedMethod>
|
||||
</file>
|
||||
<file src="src/Psalm/Type/Atomic/TList.php">
|
||||
<ImpureMethodCall occurrences="2">
|
||||
<code>replace</code>
|
||||
<code>replace</code>
|
||||
</ImpureMethodCall>
|
||||
<ImpurePropertyAssignment occurrences="1">
|
||||
<code>$cloned->type_param</code>
|
||||
</ImpurePropertyAssignment>
|
||||
</file>
|
||||
<file src="src/Psalm/Type/Atomic/TNonEmptyList.php">
|
||||
<DeprecatedClass occurrences="1">
|
||||
<code>TList</code>
|
||||
</DeprecatedClass>
|
||||
<PossiblyUnusedMethod occurrences="1">
|
||||
<code>setCount</code>
|
||||
</PossiblyUnusedMethod>
|
||||
</file>
|
||||
<file src="src/Psalm/Type/Atomic/TObjectWithProperties.php">
|
||||
<ImpureMethodCall occurrences="2">
|
||||
@ -653,6 +679,12 @@
|
||||
<code>traverseArray</code>
|
||||
<code>traverseArray</code>
|
||||
</ImpureMethodCall>
|
||||
<MoreSpecificReturnType occurrences="1">
|
||||
<code>TArray|TKeyedArray|TClassStringMap</code>
|
||||
</MoreSpecificReturnType>
|
||||
<PossiblyUndefinedStringArrayOffset occurrences="1">
|
||||
<code>$this->types['array']</code>
|
||||
</PossiblyUndefinedStringArrayOffset>
|
||||
<PossiblyUnusedMethod occurrences="2">
|
||||
<code>allFloatLiterals</code>
|
||||
<code>allFloatLiterals</code>
|
||||
|
@ -61,7 +61,6 @@ use Psalm\Type\Atomic\TFalse;
|
||||
use Psalm\Type\Atomic\TFloat;
|
||||
use Psalm\Type\Atomic\TInt;
|
||||
use Psalm\Type\Atomic\TKeyedArray;
|
||||
use Psalm\Type\Atomic\TList;
|
||||
use Psalm\Type\Atomic\TLiteralClassString;
|
||||
use Psalm\Type\Atomic\TLiteralFloat;
|
||||
use Psalm\Type\Atomic\TLiteralInt;
|
||||
|
@ -7,7 +7,6 @@ use Psalm\Type\Atomic;
|
||||
use Psalm\Type\Atomic\TArray;
|
||||
use Psalm\Type\Atomic\TClassStringMap;
|
||||
use Psalm\Type\Atomic\TKeyedArray;
|
||||
use Psalm\Type\Atomic\TList;
|
||||
use Psalm\Type\Atomic\TLiteralInt;
|
||||
use Psalm\Type\Atomic\TLiteralString;
|
||||
use Psalm\Type\Atomic\TNever;
|
||||
|
@ -4,6 +4,8 @@ namespace Psalm\Type\Atomic;
|
||||
|
||||
use Psalm\Type;
|
||||
|
||||
use function array_fill;
|
||||
|
||||
/**
|
||||
* @deprecated Will be removed in Psalm v6, please use TKeyedArrays with is_list=true instead.
|
||||
*
|
||||
|
@ -5,6 +5,8 @@ namespace Psalm\Type\Atomic;
|
||||
use Psalm\Type;
|
||||
use Psalm\Type\Union;
|
||||
|
||||
use function array_fill;
|
||||
|
||||
/**
|
||||
* @deprecated Will be removed in Psalm v6, please use TKeyedArrays with is_list=true instead.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user