mirror of
https://github.com/danog/psalm.git
synced 2024-11-27 04:45:20 +01:00
commit
f0f0b4a8a8
@ -33,7 +33,7 @@ class ClassLoadOrderTest extends TestCase
|
||||
$a = A::B;
|
||||
class C {}',
|
||||
],
|
||||
'SKIPPED-deferredReference' => [
|
||||
'deferredReference' => [
|
||||
'<?php
|
||||
class B {
|
||||
const C = A;
|
||||
|
@ -71,7 +71,7 @@ class Php70Test extends TestCase
|
||||
'$a' => 'string',
|
||||
],
|
||||
],
|
||||
'SKIPPED-nullCoalesceWithReference' => [
|
||||
'nullCoalesceWithReference' => [
|
||||
'<?php
|
||||
$var = 0;
|
||||
($a =& $var) ?? "hello";',
|
||||
|
@ -559,7 +559,7 @@ class FunctionClassStringTemplateTest extends TestCase
|
||||
f(A::class);
|
||||
f(B::class);',
|
||||
],
|
||||
'SKIPPED-compareToExactClassString' => [
|
||||
'compareToExactClassString' => [
|
||||
'<?php
|
||||
/**
|
||||
* @template T as object
|
||||
|
@ -1517,7 +1517,7 @@ class FunctionTemplateTest extends TestCase
|
||||
if (is_array($iterable)) {}
|
||||
}'
|
||||
],
|
||||
'SKIPPED-transformNestedTemplateWherePossible' => [
|
||||
'transformNestedTemplateWherePossible' => [
|
||||
'<?php
|
||||
/**
|
||||
* @template TValue
|
||||
|
@ -630,7 +630,7 @@ class ConditionalTest extends \Psalm\Tests\TestCase
|
||||
$b_or_d->foo();
|
||||
}',
|
||||
],
|
||||
'SKIPPED-isArrayOnArrayKeyOffset' => [
|
||||
'isArrayOnArrayKeyOffset' => [
|
||||
'<?php
|
||||
/** @var array{s:array<mixed, array<int, string>|string>} */
|
||||
$doc = [];
|
||||
@ -2923,7 +2923,7 @@ class ConditionalTest extends \Psalm\Tests\TestCase
|
||||
echo $i === 3;',
|
||||
'error_message' => 'TypeDoesNotContainType',
|
||||
],
|
||||
'SKIPPED-noIntersectionOfArrayOrTraversable' => [
|
||||
'noIntersectionOfArrayOrTraversable' => [
|
||||
'<?php
|
||||
function foo(iterable $iterable) : void {
|
||||
if (\is_array($iterable) && $iterable instanceof \Traversable) {}
|
||||
|
Loading…
Reference in New Issue
Block a user