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

valkyrjaio / valkyrja-php / 38195775146
100%

Build:
DEFAULT BRANCH: 26.x
Ran 12 Oct 2026 02:28AM UTC
Jobs 1
Files 1302
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 02:26AM UTC coverage: 100.0%. Remained the same
38195775146

push

github

web-flow
[Http] fix(#1360)!: Build a cast type through the container (#1374)

# Description

Build the type that an HTTP route parameter's `Cast` names through the
container.
`Matcher::castMatchValue()` called `$cast->type::fromValue($match)`, a
static call on a variable
class, which no other Valkyrja language can make, so

[STATIC_METHODS.md](https://github.com/valkyrjaio/architecture/blob/26.x/STATIC_METHODS.md)
replaces it with a container-registered factory.

`Matcher` takes the container, and it requires both of its arguments, so
the dependency is
explicit rather than satisfiable by a container that resolves no cast
type. `Router` therefore
builds its default matcher in the constructor body with the container it
holds, because PHP cannot
read a sibling parameter in a default value. A `Router` built with an
explicit `matcher: null` now
takes that default rather than raising a `TypeError`.

`HttpRoutingComponentProvider` returns the type component, so an HTTP
application resolves a cast
that `CastType` names with no further registration. Without it, a cast
that worked through the
static call would raise `ContainerInvalidReferenceException` out of
`match()`.

An application that declares a cast the framework does not ship binds
that type, and an unbound
key raises `ContainerInvalidReferenceException` out of `match()`.

Closes #1360

## Types of changes

- [ ] Improvement _(non-breaking change which improves code)_
- [ ] Bug fix _(non-breaking change which fixes an issue)_
- [ ] New feature _(non-breaking change which adds functionality)_
- [ ] Deprecation _(breaking change which removes functionality)_
- [x] Breaking change _(fix or feature that would cause existing
functionality to change)_
- [x] Documentation improvement

## Changes

- **`Http/Routing/Matcher/Matcher.php`** — resolves a cast type through
the container, and requires
  a collection and a container.
- **`Http/Routing/Dispatcher/Router.php`** — builds its default matcher
with the container it
... (continued)

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

14213 of 14213 relevant lines covered (100.0%)

27.14 hits per line

Jobs
ID Job ID Ran Files Coverage
1 38195775146.1 12 Oct 2026 02:28AM UTC 1302
100.0
GitHub Action Run
Source Files on build 38195775146
  • Tree
  • List 1302
  • Changed 4
  • Source Changed 4
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #38195775146
  • 183497c6 on github
  • Prev Build on 26.x (#38195085733)
  • Next Build on 26.x (#38196788698)
  • 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