Skip to content

Commit 0d78168

Browse files
committed
We now convert UnionType([T, int]) to ReflectionNamedProperty: adjusting expectations in stubber tests
1 parent c861f48 commit 0d78168

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/unit/SourceLocator/SourceStubber/PhpStormStubsSourceStubberTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -862,11 +862,11 @@ public function dataPropertyInPhpVersion(): array
862862
[DateInterval::class, 'f', 70099, false],
863863
[DateInterval::class, 'f', 70100, true],
864864
[PDOException::class, 'errorInfo', 80099, true],
865-
[PDOException::class, 'errorInfo', 80100, true, 'array|null'],
865+
[PDOException::class, 'errorInfo', 80100, true, '?array'],
866866
[DOMNode::class, 'nodeType', 80099, true],
867867
[DOMNode::class, 'nodeType', 80100, true, 'int'],
868868
[DOMNode::class, 'parentNode', 80099, true],
869-
[DOMNode::class, 'parentNode', 80100, true, 'DOMNode|null'],
869+
[DOMNode::class, 'parentNode', 80100, true, '?DOMNode'],
870870
];
871871
}
872872

@@ -910,7 +910,7 @@ public function dataFunctionInPhpVersion(): array
910910
['read_exif_data', 80000, false],
911911
['spl_autoload_functions', 79999, true, 'array|false'],
912912
['spl_autoload_functions', 80000, true, 'array'],
913-
['dom_import_simplexml', 70000, true, 'DOMElement|null'],
913+
['dom_import_simplexml', 70000, true, '?DOMElement'],
914914
['dom_import_simplexml', 80000, true, 'DOMElement'],
915915
// Not core functions
916916
['newrelic_add_custom_parameter', 40000, true, 'bool'],
@@ -944,7 +944,7 @@ public function dataFunctionParameterInPhpVersion(): array
944944
['bcscale', 'scale', 70200, true, 'int', false],
945945
['bcscale', 'scale', 70299, true, 'int', false],
946946
['bcscale', 'scale', 70300, true, '?int', true],
947-
['bcscale', 'scale', 80000, true, 'int|null', true],
947+
['bcscale', 'scale', 80000, true, '?int', true],
948948
['easter_date', 'mode', 79999, false],
949949
['easter_date', 'mode', 80000, true, 'int', false],
950950
['curl_version', 'age', 50200, false],

0 commit comments

Comments
 (0)