• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

valkyrjaio / sindri-php / 38199388027
100%

Build:
DEFAULT BRANCH: 26.x
Ran 12 Oct 2026 03:22AM UTC
Jobs 1
Files 80
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

12 Oct 2026 03:20AM UTC coverage: 100.0%. Remained the same
38199388027

push

github

web-flow
[Routing] feat(#347): Cache the routes a provider declares by hand (#349)

# Description

Read a route provider's manually declared `getRoutes()` routes into the
generated Cli and Http
route caches. `RouteProviderReader::extractRoutes()` returned an empty
array and neither
`generateCliData` nor `generateHttpData` read the result's routes, so a
cached application lost
every route a provider declared by hand while an uncached one served
them.

The scope is a bare construction of a static route. The reader keeps the
construction verbatim
and makes each imported, namespace-relative, `self` and `static` class
name in it fully
qualified, because the generated file carries none of the provider
file's use statements. The
generator keys each route by its name, and builds the `paths` entry an
Http route is matched
through from the route's path and request methods. The manual routes are
applied after every
attribute route, the way the Cli and Http routing service providers add
them, so a name
collision between cached routes resolves the same way with the cache as
without it.

A construction is cached only when the generated file can evaluate every
node of it, and only
when the generator can read the arguments it keys the route by. The
expression is written into a
static closure in another class and another namespace, so anything that
reads the declaring
provider's scope — a variable, a property, a call, a constant that is
not public where the
closure reads it, `parent`, `self` other than `self::class` — evaluates
to nothing there and
fails the cached application on a route the uncached one serves. The
reader therefore lists the
nodes it can evaluate and drops a construction that holds any other,
rather than enumerating the
shapes it knows to be bad.

These shapes are dropped, and each one has a test. Most are asserted
against the generated data.
A first-class-callable placeholder, a variable, and a constant of the
provider's parent are
asserted against the reade... (continued)

145 of 145 new or added lines in 4 files covered. (100.0%)

1680 of 1680 relevant lines covered (100.0%)

19.69 hits per line

Jobs
ID Job ID Ran Files Coverage
1 38199388027.1 12 Oct 2026 03:22AM UTC 80
100.0
GitHub Action Run
Source Files on build 38199388027
  • Tree
  • List 80
  • Changed 5
  • Source Changed 5
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #38199388027
  • 20f9c3e9 on github
  • Prev Build on 26.x (#37963103690)
  • Next Build on 26.x (#39181291688)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc