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

Omit property assignment tests for SimpleXMLElement

This commit is contained in:
Karl Thaler 2024-01-10 13:07:32 -08:00
parent b2e53f6cf8
commit 138b47a04f

View File

@ -3825,22 +3825,6 @@ class PropertyTypeTest extends TestCase
',
'error_message' => 'UndefinedPropertyAssignment',
],
'setPropertiesOfSimpleXMLElement1' => [
'code' => '<?php
$a = new SimpleXMLElement("<person><child role=\"son\"></child></person>");
$a->b = "c";
',
'error_message' => 'UndefinedPropertyAssignment',
],
'setPropertiesOfSimpleXMLElement2' => [
'code' => '<?php
$a = new SimpleXMLElement("<person><child role=\"son\"></child></person>");
if (isset($a->b)) {
$a->b = "c";
}
',
'error_message' => 'UndefinedPropertyAssignment',
],
];
}
}