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:
parent
b2e53f6cf8
commit
138b47a04f
@ -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',
|
||||
],
|
||||
];
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user