Skip to content

Commit

Permalink
CallFinderTest: Test for DNF types
Browse files Browse the repository at this point in the history
  • Loading branch information
jnvsor committed Nov 1, 2022
1 parent 7d22eda commit a0e2ffa
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions tests/CallFinderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1101,6 +1101,28 @@ public function sourceProvider()
];
}

if (KINT_PHP82) {
$data['dnf types'] = [
'<?php
test(function ((A & B) | C | null $test) {});',
'line' => 3,
'function' => 'test',
'result' => [
[
'modifiers' => [],
'parameters' => [
[
'path' => 'function ((A & B) | C | null $test) {}',
'name' => 'function (...) {}',
'expression' => true,
],
],
],
],
];
}

return $data;
}

Expand Down

0 comments on commit a0e2ffa

Please sign in to comment.