Skip to content

Commit a820cb6

Browse files
committed
Fixing PHPDoc type hinting errors - #220
1 parent 295fa88 commit a820cb6

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/classes/helpers/arr.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ public static function map(array $array, ?callable $callback = null): array
149149
*
150150
* @template T
151151
* @param T[] $array Array to search.
152-
* @param callable(T)|null $callback Callback function (should return bool),
152+
* @param callable(T):bool|null $callback Callback function (should return bool),
153153
* @return T[] Array of matching elements.
154154
*/
155155
public static function match(array $array, ?callable $callback = null): array

src/pages/events/events.class.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ public function json_get(): Json
5858
/**
5959
* Get Church Suite compatible query options.
6060
*
61-
* @param array $values Query values.
62-
* @return string URL-encoded query (using http_build_query()).
61+
* @param array<string, mixed> $values Query values.
62+
* @return string URL-encoded query (using http_build_query()).
6363
*/
6464
private static function get_query(array $values): string
6565
{
@@ -78,8 +78,8 @@ private static function get_query(array $values): string
7878
/**
7979
* Get events from Church Suite matching the query.
8080
*
81-
* @param array|string $query Array of query values, or URL-encoded query (e.g. using http_build_query()).
82-
* @return Event[] Array of matching events.
81+
* @param array<string, mixed>|string $query Array of query values, or URL-encoded query (e.g. using http_build_query()).
82+
* @return Event[] Array of matching events.
8383
*/
8484
public static function get_events(array|string $query): array
8585
{

0 commit comments

Comments
 (0)