From 40679cf5b9ad974a78609a1b5d182ee6ae2ce7f9 Mon Sep 17 00:00:00 2001 From: Simon Epskamp Date: Fri, 10 Jan 2025 16:33:40 +0100 Subject: [PATCH] ResourceEvent: fix php8.3 compatability Remove `?` from `?mixed`, as it's not needed and not allowed anymore. --- changelog.md | 3 +++ src/Ampersand/Event/ResourceEvent.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index d3c27de59..795365498 100644 --- a/changelog.md +++ b/changelog.md @@ -11,6 +11,9 @@ Additional labels for pre-release and build metadata are available as extensions ## Unreleased changes +## v2.0.0-alpha.4 (25 dec 2024) +* Fix php 8.3 compatability + ## v2.0.0-alpha.4 (25 dec 2024) * Dispatch resource events for PUT, PATCH, POST and DELETE actions diff --git a/src/Ampersand/Event/ResourceEvent.php b/src/Ampersand/Event/ResourceEvent.php index 304de3a21..e70ddaf24 100644 --- a/src/Ampersand/Event/ResourceEvent.php +++ b/src/Ampersand/Event/ResourceEvent.php @@ -17,7 +17,7 @@ class ResourceEvent extends AbstractEvent public function __construct( public Resource $resource, public Transaction $transaction, - public ?mixed $body = null, + public mixed $body = null, ) { }