Skip to content

Commit b7d1417

Browse files
committed
Fixed type hints for indexed arrays
1 parent 37b5d39 commit b7d1417

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/JsonPathEvaluatorInterface.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,21 @@ interface JsonPathEvaluatorInterface
99
{
1010
/**
1111
* @param \stdClass|array<scalar, mixed> $data
12-
* @return array<scalar, mixed>
12+
* @return list<mixed>
1313
* @throws JsonPathEvaluatorException
1414
*/
1515
function getValues(array|\stdClass $data, string $path): array;
1616

1717
/**
1818
* @param \stdClass|array<scalar, mixed> $data
19-
* @return array<int, string>
19+
* @return list<string>
2020
* @throws JsonPathEvaluatorException
2121
*/
2222
function getPaths(array|\stdClass $data, string $path): array;
2323

2424
/**
2525
* @param \stdClass|array<scalar, mixed> $data
26-
* @param array<int, mixed> $values
26+
* @param list<mixed> $values
2727
* @throws JsonPathEvaluatorException
2828
*/
2929
function setValues(

src/Types/AbstractNodesType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function getNodes(): array
2626
}
2727

2828
/**
29-
* @return array<mixed>
29+
* @return list<mixed>
3030
*/
3131
public function getNodeValues(): array
3232
{

0 commit comments

Comments
 (0)