mirror of
https://github.com/danog/psalm.git
synced 2024-12-12 09:19:40 +01:00
fix wrong result type
This commit is contained in:
parent
a1bd339cc1
commit
57d0336a9c
@ -15,7 +15,7 @@ class DomDocumentPropertyTypeProvider implements PropertyTypeProviderInterface
|
||||
public static function getPropertyType(PropertyTypeProviderEvent $event): ?Union
|
||||
{
|
||||
if (strtolower($event->getPropertyName()) === 'documentelement') {
|
||||
$type = new Union([new TNamedObject('DomDocument'), new TNull()]);
|
||||
$type = new Union([new TNamedObject('DOMElement'), new TNull()]);
|
||||
$type->ignore_nullable_issues = true;
|
||||
|
||||
return $type;
|
||||
|
Loading…
Reference in New Issue
Block a user