mirror of
https://github.com/danog/psalm.git
synced 2025-01-22 05:41:20 +01:00
Made the test marked 7.4
This commit is contained in:
parent
ff1b745e2a
commit
657f8e22ed
@ -126,18 +126,13 @@ class ReflectionParameter {
|
||||
|
||||
/**
|
||||
* @psalm-immutable
|
||||
* @since 8.0
|
||||
*/
|
||||
class ReflectionNamedType extends ReflectionType
|
||||
{
|
||||
/**
|
||||
* @since 8.0
|
||||
*/
|
||||
public function getName(): string {}
|
||||
|
||||
/**
|
||||
* @psalm-assert-if-false class-string $this->getName()
|
||||
* @since 8.0
|
||||
*/
|
||||
public function isBuiltin(): bool {}
|
||||
}
|
||||
|
@ -1465,13 +1465,14 @@ class AssertAnnotationTest extends TestCase
|
||||
],
|
||||
'reflectionNameTypeClassStringIfNotBuiltin' => [
|
||||
'<?php
|
||||
/**
|
||||
* @return class-string|null
|
||||
*/
|
||||
/** @return class-string|null */
|
||||
function getPropertyType(\ReflectionProperty $reflectionItem): ?string {
|
||||
$type = $reflectionItem->getType();
|
||||
return ($type instanceof \ReflectionNamedType) && !$type->isBuiltin() ? $type->getName() : null;
|
||||
}'
|
||||
}',
|
||||
[],
|
||||
[],
|
||||
'7.4',
|
||||
],
|
||||
'withHasTypeCall' => [
|
||||
'<?php
|
||||
|
Loading…
x
Reference in New Issue
Block a user