mirror of
https://github.com/danog/psalm.git
synced 2025-01-22 13:51:54 +01:00
Merge pull request #10574 from edsrzf/unit-test-improvements
Unit test improvements for php-parser 5
This commit is contained in:
commit
9616b14253
@ -464,7 +464,9 @@ class ClassTest extends TestCase
|
||||
],
|
||||
'classAliasNoException' => [
|
||||
'code' => '<?php
|
||||
namespace {
|
||||
class_alias("Bar\F1", "Bar\F2");
|
||||
}
|
||||
|
||||
namespace Bar {
|
||||
class F1 {
|
||||
|
@ -603,7 +603,7 @@ class TemporaryUpdateTest extends TestCase
|
||||
|
||||
class A {
|
||||
public function foo() : void {
|
||||
throw new Error("bad", 5);
|
||||
throw new Error("bad", []);
|
||||
}
|
||||
}',
|
||||
],
|
||||
@ -613,7 +613,7 @@ class TemporaryUpdateTest extends TestCase
|
||||
|
||||
class A {
|
||||
public function foo() : void {
|
||||
throw new Error("bad", 5);
|
||||
throw new Error("bad", []);
|
||||
}
|
||||
}',
|
||||
],
|
||||
@ -657,7 +657,7 @@ class TemporaryUpdateTest extends TestCase
|
||||
|
||||
class A {
|
||||
public function foo() : void {
|
||||
throw new E("bad", 5);
|
||||
throw new E("bad", []);
|
||||
}
|
||||
}',
|
||||
],
|
||||
@ -667,7 +667,7 @@ class TemporaryUpdateTest extends TestCase
|
||||
|
||||
class A {
|
||||
public function foo() : void {
|
||||
throw new E("bad", 5);
|
||||
throw new E("bad", []);
|
||||
}
|
||||
}',
|
||||
],
|
||||
@ -707,7 +707,7 @@ class TemporaryUpdateTest extends TestCase
|
||||
|
||||
class A {
|
||||
public function foo() : void {
|
||||
throw new Error("bad", 5);
|
||||
throw new Error("bad", []);
|
||||
}
|
||||
}',
|
||||
],
|
||||
@ -717,7 +717,7 @@ class TemporaryUpdateTest extends TestCase
|
||||
|
||||
class A {
|
||||
public function foo() : void {
|
||||
throw new Error("bad", 5);
|
||||
throw new Error("bad", []);
|
||||
}
|
||||
}',
|
||||
],
|
||||
@ -755,7 +755,7 @@ class TemporaryUpdateTest extends TestCase
|
||||
|
||||
class A {
|
||||
public function foo() : void {
|
||||
throw new E("bad", 5);
|
||||
throw new E("bad", []);
|
||||
}
|
||||
}',
|
||||
],
|
||||
@ -765,7 +765,7 @@ class TemporaryUpdateTest extends TestCase
|
||||
|
||||
class A {
|
||||
public function foo() : void {
|
||||
throw new E("bad", 5);
|
||||
throw new E("bad", []);
|
||||
}
|
||||
}',
|
||||
],
|
||||
|
@ -1166,7 +1166,7 @@ class PropertyTypeTest extends TestCase
|
||||
* Constructs a finally node.
|
||||
*
|
||||
* @param list<Node\Stmt> $stmts Statements
|
||||
* @param array $attributes Additional attributes
|
||||
* @param array<string, mixed> $attributes Additional attributes
|
||||
*/
|
||||
public function __construct(array $stmts = array(), array $attributes = array()) {
|
||||
parent::__construct($attributes);
|
||||
|
Loading…
x
Reference in New Issue
Block a user