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

valkyrjaio / valkyrja-php / 37724732714
100%

Build:
DEFAULT BRANCH: 26.x
Ran 08 Oct 2026 03:53AM UTC
Jobs 1
Files 1250
Run time 2min
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

08 Oct 2026 03:51AM UTC coverage: 100.0%. Remained the same
37724732714

push

github

web-flow
[Container] fix!: Resolve a parent-declared alias in the container that declares it (#1268)

# Description

An alias resolves in the container that declares it. A child lookup of
an alias
only the parent declares goes to the parent, and the parent answers it
as it
would for any caller. That is a shared service resolving once, not a
leak.

There is one exception. The child resolves a singleton the parent never
built,
or a publisher it has not run, when it holds that registration too.
Letting the
parent do it would leave one request holding two copies of one id.

An alias that points at a chain returning to its own start has no end.
Each
write to a container's own alias map rejects a chain that returns to the
alias
it stores, so no container's own map carries one. A child names a cycle
it meets
while it resolves. This removes two refusals of lookups the parent could
answer,
and adds one exception that registration and resolution both raise.

A container writes a singleton into its own instance map rather than
over an
entry already there. A factory that caches an instance for its own id
while it
runs decides what the readers of that container get.

Warning: this removes two public exceptions.

## 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

- **`Container`** — validates an alias map before it installs any of the
four
  maps. Only the aliases a caller supplies start a walk, so a chain the
  container already held is no reason to refuse a call.
- **`ContainerCyclicAliasException`** — added. A child throws it while
it
  resolves as well, for a chain registration cannot see.
- **`ContainerUnresolvedPar... (continued)

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

13111 of 13111 relevant lines covered (100.0%)

26.88 hits per line

Jobs
ID Job ID Ran Files Coverage
1 37724732714.1 08 Oct 2026 03:53AM UTC 1250
100.0
GitHub Action Run
Source Files on build 37724732714
  • Tree
  • List 1250
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #37724732714
  • 58365ff0 on github
  • Prev Build on 26.x (#37719139000)
  • Next Build on 26.x (#37738877654)
  • 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