Skip to content

Commit

Permalink
Docs: Fix class declaration syntax errors in the state documentation (#…
Browse files Browse the repository at this point in the history
…182)

fix(docs): correct class declaration syntax in examples

Co-authored-by: Jacob Davis <[email protected]>
  • Loading branch information
tisuchi and jdiddydave authored Oct 30, 2024
1 parent 149272a commit 7ec1450
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/states.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 7ec1450

Please sign in to comment.