Skip to content

Commit

Permalink
Fixing trailing comma in constructor.
Browse files Browse the repository at this point in the history
Assigning default value of empty array for $middleware in application.
  • Loading branch information
Brent Scheffler committed Aug 23, 2020
1 parent 63b4ee4 commit 371a2bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class Application
*
* @var array<string|callable|MiddlewareInterface>
*/
protected $middleware;
protected $middleware = [];

/**
* Compiled request handler chain.
Expand Down
2 changes: 1 addition & 1 deletion tests/ApplicationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public function test_set_exception_handler(): void
$application = new Application(
new RouteManager,
$middlewareManager,
new DependencyManager,
new DependencyManager
);

$handler = new class implements ExceptionHandlerInterface {
Expand Down

0 comments on commit 371a2bf

Please sign in to comment.