Skip to content

Commit

Permalink
Fix php8-specific bug, because those happen now
Browse files Browse the repository at this point in the history
  • Loading branch information
Robin de Graaf committed Jan 20, 2021
1 parent fe8c44c commit dd3316b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Parable Routing

## 0.3.1

_Fixes_
- With php8 come new challenges -- `?string` values need to be set to `= null` by default.

## 0.3.0

_Changes_
Expand Down
4 changes: 2 additions & 2 deletions src/Route.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ class Route
/** @var callable|null */
protected $callable;

protected ?string $controller;
protected ?string $action;
protected ?string $controller = null;
protected ?string $action = null;
protected Metadata $metadata;
protected ParameterValues $parameterValues;

Expand Down

0 comments on commit dd3316b

Please sign in to comment.