Skip to content

[6.x] Fix $vite type annotation on AddonServiceProvider - #15480

Merged
jasonvarga merged 1 commit into
statamic:6.xfrom
daun:fix/addon-vite-types
Sep 18, 2026
Merged

jasonvarga merged 1 commit into
statamic:6.xfrom
daun:fix/addon-vite-types

Conversation

@daun

@daun daun commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

AddonServiceProvider::$vite is annotated list<string>, but registerVite() accepts more complex types for the vite config: a plain string, a list of entry points, or an array with input / publicDirectory / buildDirectory / hotFile keys are all valid signatures.

Not an issue in use, just flagged as errors by static analysis.

Docblocks only, no behaviour change.

@jasonvarga
jasonvarga merged commit 15db165 into statamic:6.x Sep 18, 2026
62 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.

2 participants