mirror of
https://github.com/danog/psalm.git
synced 2025-01-21 21:31:13 +01:00
Fix build
This commit is contained in:
parent
09ea7ba7a8
commit
72c50be4b0
@ -1,5 +1,16 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<psalm xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="https://getpsalm.org/schema/config" name="Psalm for Psalm" useDocblockTypes="true" totallyTyped="true" strictBinaryOperands="false" rememberPropertyAssignmentsAfterCall="true" checkForThrowsDocblock="false" throwExceptionOnError="0" xsi:schemaLocation="https://getpsalm.org/schema/config config.xsd">
|
<psalm
|
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xmlns="https://getpsalm.org/schema/config"
|
||||||
|
name="Psalm for Psalm"
|
||||||
|
useDocblockTypes="true"
|
||||||
|
totallyTyped="true"
|
||||||
|
strictBinaryOperands="false"
|
||||||
|
rememberPropertyAssignmentsAfterCall="true"
|
||||||
|
checkForThrowsDocblock="false"
|
||||||
|
throwExceptionOnError="0"
|
||||||
|
xsi:schemaLocation="https://getpsalm.org/schema/config config.xsd"
|
||||||
|
>
|
||||||
<projectFiles>
|
<projectFiles>
|
||||||
<directory name="src"/>
|
<directory name="src"/>
|
||||||
<directory name="tests"/>
|
<directory name="tests"/>
|
||||||
|
@ -932,6 +932,7 @@ class ArrayAssignmentTest extends TestCase
|
|||||||
/**
|
/**
|
||||||
* @psalm-suppress EmptyArrayAccess
|
* @psalm-suppress EmptyArrayAccess
|
||||||
* @psalm-suppress InvalidOperand
|
* @psalm-suppress InvalidOperand
|
||||||
|
* @psalm-suppress MixedOperand
|
||||||
*/
|
*/
|
||||||
$a[$key] += 5;
|
$a[$key] += 5;
|
||||||
}
|
}
|
||||||
|
@ -66,6 +66,13 @@ class TypeCombinationTest extends TestCase
|
|||||||
'null',
|
'null',
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
'mixedOrEmpty' => [
|
||||||
|
'mixed',
|
||||||
|
[
|
||||||
|
'empty',
|
||||||
|
'mixed',
|
||||||
|
],
|
||||||
|
],
|
||||||
'mixedOrObject' => [
|
'mixedOrObject' => [
|
||||||
'mixed|object',
|
'mixed|object',
|
||||||
[
|
[
|
||||||
|
Loading…
x
Reference in New Issue
Block a user