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

Fix tests

This commit is contained in:
Brown 2020-06-11 12:19:27 -04:00
parent 7fa48f3508
commit 8a0776c8e5
2 changed files with 3 additions and 2 deletions

View File

@ -14,7 +14,8 @@ class ArgTest extends TestCase
return [
'callMapClassOptionalArg' => [
'<?php
$m = new ReflectionMethod("hello", "goodbye");
class Hello {}
$m = new ReflectionMethod(Hello::class, "goodbye");
$m->invoke(null, "cool");',
],
'sortFunctions' => [

View File

@ -326,7 +326,7 @@ class PropertyTypeTest extends TestCase
class Foo {
}
$a = new \ReflectionMethod("Foo", "__construct");
$a = new \ReflectionMethod(Foo::class, "__construct");
echo $a->name . " - " . $a->class;',
],