Skip to content

Modernise to Livewire 4: replace getEventsProperty() with events()#8

Merged
SimonBarrettACT merged 3 commits into
mainfrom
feature/issue-7-modernise-events-computed
Mar 7, 2026
Merged

Modernise to Livewire 4: replace getEventsProperty() with events()#8
SimonBarrettACT merged 3 commits into
mainfrom
feature/issue-7-modernise-events-computed

Conversation

@SimonBarrettACT

Copy link
Copy Markdown
Member

Summary

  • Rename abstract getEventsProperty() to events() across the package
  • Update blade view to call $this->events() as a method instead of a computed property
  • Upgrade dev dependencies to Laravel 11 / Pest 3 / PHPStan 2
  • Simplify CI test matrix: drop Windows, update PHP to 8.2–8.4, remove hardcoded Laravel version matrix
  • Fix PHPStan workflow and config for PHPStan 2

Test plan

  • Existing tests pass locally
  • PHPStan passes locally and in CI
  • CI run-tests passes on all PHP versions
  • Consuming apps rename getEventsProperty()events()

Closes #7

🤖 Generated with Claude Code

SimonBarrettACT and others added 3 commits March 7, 2026 12:14
Rename the abstract `getEventsProperty()` to `events()` and call it
as a method in the blade view, removing the legacy Livewire 2 computed
property pattern. Upgrade dev dependencies to support Laravel 11 and
simplify the CI test matrix.

Closes #7

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Update PHP version to 8.2, ramsey/composer-install to v3, remove
deprecated checkMissingIterableValueType option, and drop non-existent
database path from analysis paths.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@SimonBarrettACT SimonBarrettACT merged commit cc1072d into main Mar 7, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Modernise to Livewire 4: replace abstract getEventsProperty() with #[Computed] events()

1 participant