Skip to content

Commit 18ff78e

Browse files
committed
docs: type hints
1 parent 3bf9973 commit 18ff78e

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

src/Application.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class Application {
3030
private Timer $timer;
3131
private OutputBuffer $outputBuffer;
3232
private RequestFactory $requestFactory;
33-
/** @var array<string, array<string, string>> */
33+
/** @var array<string, array<string, string|array<string, string>>> */
3434
private array $globals;
3535
private Config $config;
3636
private DispatcherFactory $dispatcherFactory;

src/Dispatch/DispatcherFactory.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@
55
use Gt\Http\Request;
66

77
class DispatcherFactory {
8+
/**
9+
* @param array<string, mixed> $globalGet
10+
* @param array<string, mixed> $globalPost
11+
* @param array<string, mixed> $globalFiles
12+
* @param array<string, mixed> $globalServer
13+
*/
814
public function create(
915
Config $config,
1016
Request $request,

0 commit comments

Comments
 (0)