1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-21 05:17:47 +01:00

Fix build

This commit is contained in:
Brown 2018-12-19 20:01:27 -05:00
parent 09ea7ba7a8
commit 72c50be4b0
3 changed files with 20 additions and 1 deletions

View File

@ -1,5 +1,16 @@
<?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>
<directory name="src"/>
<directory name="tests"/>

View File

@ -932,6 +932,7 @@ class ArrayAssignmentTest extends TestCase
/**
* @psalm-suppress EmptyArrayAccess
* @psalm-suppress InvalidOperand
* @psalm-suppress MixedOperand
*/
$a[$key] += 5;
}

View File

@ -66,6 +66,13 @@ class TypeCombinationTest extends TestCase
'null',
],
],
'mixedOrEmpty' => [
'mixed',
[
'empty',
'mixed',
],
],
'mixedOrObject' => [
'mixed|object',
[