From 80023da5cbe34dfe03830a9a2cd01f15c2f33bb0 Mon Sep 17 00:00:00 2001 From: Rati Rukhadze Date: Mon, 21 Sep 2026 15:53:30 +0400 Subject: [PATCH] fix: let static analysis see the package's own view namespace --- testbench.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 testbench.yaml diff --git a/testbench.yaml b/testbench.yaml new file mode 100644 index 0000000..bcd707b --- /dev/null +++ b/testbench.yaml @@ -0,0 +1,15 @@ +# The application Larastan boots to answer static questions about Laravel. +# +# Larastan resolves a `view-string` literal by asking a real, booted application +# whether the view exists, and it builds that application with Testbench -- which +# takes its provider list from this file. Without it the analysis application never +# registers Vacuum's own provider, never runs the `loadViewsFrom(..., 'vacuum')` +# that creates the namespace, and so rejects every `vacuum::` template the package +# renders as a view that is not there. +# +# Registering the provider here is what makes the check honest rather than merely +# quiet: the names the package really renders resolve, and a misspelt one is still +# an error. Testbench's own TestCase names the same provider in +# `getPackageProviders()`, and Laravel will not register a provider twice. +providers: + - Heyosseus\Vacuum\VacuumServiceProvider