Skip to content

Add AsLiveComponentArgumentsMustBeValidRule - #28

Merged
Kocal merged 1 commit into
mainfrom
feature/as-live-component-arguments-rule
Nov 8, 2026
Merged

Kocal merged 1 commit into
mainfrom
feature/as-live-component-arguments-rule

Conversation

@Kocal

@Kocal Kocal commented Nov 8, 2026

Copy link
Copy Markdown
Owner

The rule checks that #[AsLiveComponent] gets a method of get or post, and a fetchCredentials (added in 2.33) of same-origin, include or omit. Symfony UX throws an UnexpectedValueException for any other value when the attribute is instantiated, so the rule reports it during static analysis instead.

The dev dependencies are bumped to ^2.33 for fetchCredentials.

@Kocal
Kocal force-pushed the feature/as-live-component-arguments-rule branch 3 times, most recently from 2835569 to 5cd9523 Compare November 8, 2026 07:08
The rule checks that `#[AsLiveComponent]` gets a `method` of `get` or `post`, and a `fetchCredentials` (added in 2.33) of `same-origin`, `include` or `omit`. Symfony UX throws an `UnexpectedValueException` for any other value when the attribute is instantiated, so the rule reports it during static analysis instead.
@Kocal
Kocal force-pushed the feature/as-live-component-arguments-rule branch from 5cd9523 to c24131a Compare November 8, 2026 07:10
@Kocal
Kocal merged commit c34a0ae into main Nov 8, 2026
8 checks passed
@Kocal
Kocal deleted the feature/as-live-component-arguments-rule branch November 8, 2026 07:12
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.

1 participant