Skip to content

Commit 0221e13

Browse files
committed
Fixup bannedFunctions type def
1 parent 9836094 commit 0221e13

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Result/FunctionRequirementsFailure.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class FunctionRequirementsFailure implements FailureInterface
1515
use ResultTrait;
1616

1717
/**
18-
* @var array<int, string>
18+
* @var array<array{function: string, line: int}>
1919
*/
2020
private $bannedFunctions;
2121

@@ -26,7 +26,7 @@ class FunctionRequirementsFailure implements FailureInterface
2626

2727
/**
2828
* @param CheckInterface $check The check that produced this result.
29-
* @param array<int, string> $bannedFunctions A list of functions that were used, but were banned.
29+
* @param array<array{function: string, line: int}> $bannedFunctions A list of functions that were used, but were banned.
3030
* @param array<int, string> $missingFunctions A list of functions that were not used, but were required.
3131
*/
3232
public function __construct(CheckInterface $check, array $bannedFunctions, array $missingFunctions)
@@ -39,7 +39,7 @@ public function __construct(CheckInterface $check, array $bannedFunctions, array
3939
/**
4040
* Get the list of functions that were used, but were banned.
4141
*
42-
* @return array<int, string>
42+
* @return array<array{function: string, line: int}>
4343
*/
4444
public function getBannedFunctions(): array
4545
{

0 commit comments

Comments
 (0)