Skip to content

Commit

Permalink
Merge pull request #459 from spatie/add-allow-dynamic-properties
Browse files Browse the repository at this point in the history
AllowDynamicProperties to suppress PHP warnings on 8.2
  • Loading branch information
sebastiandedeyne authored Mar 15, 2024
2 parents f278daa + 44dee46 commit 9b6d082
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"spatie/laravel-package-tools": "^1.9",
"spatie/laravel-schemaless-attributes": "^2.0",
"symfony/finder": "^6.0|^7.0",
"symfony/polyfill-php82": "*",
"symfony/property-access": "^6.0|^7.0",
"symfony/property-info": "^6.0|^7.0",
"symfony/serializer": "^6.0|^7.0"
Expand Down
2 changes: 2 additions & 0 deletions src/StoredEvents/StoredEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Spatie\EventSourcing\StoredEvents;

use AllowDynamicProperties;
use Exception;
use Illuminate\Contracts\Support\Arrayable;
use Illuminate\Support\Arr;
Expand All @@ -12,6 +13,7 @@
use Spatie\EventSourcing\Facades\Projectionist;
use Spatie\EventSourcing\StoredEvents\Exceptions\InvalidStoredEvent;

#[AllowDynamicProperties]
class StoredEvent implements Arrayable
{
public ?int $id;
Expand Down

0 comments on commit 9b6d082

Please sign in to comment.