diff --git a/CHANGELOG.md b/CHANGELOG.md index 4a9cbb6..d48a4df 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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_ diff --git a/src/Route.php b/src/Route.php index f31dbfa..dc2d8a8 100644 --- a/src/Route.php +++ b/src/Route.php @@ -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;