mirror of
https://github.com/danog/psalm.git
synced 2025-01-22 05:41:20 +01:00
Replace array cast with get_object_vars() which Psalm understands
This commit is contained in:
parent
39555a2df8
commit
b149097086
@ -7,6 +7,7 @@ use Psalm\Internal\Analyzer\IssueData;
|
||||
use Psalm\Report;
|
||||
|
||||
use function array_map;
|
||||
use function get_object_vars;
|
||||
|
||||
class XmlReport extends Report
|
||||
{
|
||||
@ -17,7 +18,7 @@ class XmlReport extends Report
|
||||
[
|
||||
'item' => array_map(
|
||||
function (IssueData $issue_data): array {
|
||||
$issue_data = (array) $issue_data;
|
||||
$issue_data = get_object_vars($issue_data);
|
||||
unset($issue_data['dupe_key']);
|
||||
|
||||
if (null !== $issue_data['taint_trace']) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user