Skip to content

Commit

Permalink
ResourceEvent: fix php8.3 compatability
Browse files Browse the repository at this point in the history
Remove `?` from `?mixed`, as it's not needed and not allowed anymore.
  • Loading branch information
Epskampie committed Jan 10, 2025
1 parent 0f0dbd7 commit 40679cf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion src/Ampersand/Event/ResourceEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
) {
}

Expand Down

0 comments on commit 40679cf

Please sign in to comment.