From 7ec1450930d3632d445c549f785693db1b350bd8 Mon Sep 17 00:00:00 2001 From: Thouhedul Islam Date: Wed, 30 Oct 2024 22:50:54 +0100 Subject: [PATCH] Docs: Fix class declaration syntax errors in the state documentation (#182) fix(docs): correct class declaration syntax in examples Co-authored-by: Jacob Davis <98569588+jdiddydave@users.noreply.github.com> --- docs/states.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/states.md b/docs/states.md index 7acc6ac9..902607db 100644 --- a/docs/states.md +++ b/docs/states.md @@ -56,7 +56,7 @@ to track: ```php // CountIncremented.php -class CountIncremented class extends Event +class CountIncremented extends Event { #[StateId(CountState::class)] public int $example_id; @@ -251,7 +251,7 @@ which frees up your models to better serve your frontfacing UI needs. Once you'v your state instance's id to correspond directly to a model instance. ```php -class FooCreated class +class FooCreated { #[StateId(FooState::class)] public int $foo_id;