mirror of
https://github.com/danog/psalm.git
synced 2025-01-21 21:31:13 +01:00
Fix tests
This commit is contained in:
parent
edc797d1c2
commit
ff7abec2bd
@ -424,6 +424,8 @@
|
||||
<xs:element name="RedundantCastGivenDocblockType" type="IssueHandlerType" minOccurs="0" />
|
||||
<xs:element name="RedundantCondition" type="IssueHandlerType" minOccurs="0" />
|
||||
<xs:element name="RedundantConditionGivenDocblockType" type="IssueHandlerType" minOccurs="0" />
|
||||
<xs:element name="RedundantFunctionCall" type="IssueHandlerType" minOccurs="0" />
|
||||
<xs:element name="RedundantFunctionCallGivenDocblockType" type="IssueHandlerType" minOccurs="0" />
|
||||
<xs:element name="RedundantPropertyInitializationCheck" type="IssueHandlerType" minOccurs="0" />
|
||||
<xs:element name="RedundantIdentityWithTrue" type="IssueHandlerType" minOccurs="0" />
|
||||
<xs:element name="ReferenceConstraintViolation" type="IssueHandlerType" minOccurs="0" />
|
||||
|
@ -835,7 +835,7 @@ class ArrayAssignmentTest extends TestCase
|
||||
'keyedIntOffsetArrayValues' => [
|
||||
'<?php
|
||||
$a = ["hello", 5];
|
||||
/** @psalm-suppress RedundantCast */
|
||||
/** @psalm-suppress RedundantFunctionCall */
|
||||
$a_values = array_values($a);
|
||||
$a_keys = array_keys($a);',
|
||||
'assertions' => [
|
||||
|
@ -2289,7 +2289,7 @@ class ClassTemplateTest extends TestCase
|
||||
* @return static<U>
|
||||
*/
|
||||
public function map(callable $callback) {
|
||||
/** @psalm-suppress RedundantCast */
|
||||
/** @psalm-suppress RedundantFunctionCall */
|
||||
return new static(array_values(array_map($callback, $this->elements)));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user