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

valkyrjaio / valkyrja-php / 31150269722
100%

Build:
DEFAULT BRANCH: 26.x
Ran 07 Aug 2026 05:22AM UTC
Jobs 1
Files 1182
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

07 Aug 2026 05:20AM UTC coverage: 100.0%. Remained the same
31150269722

push

github

web-flow
[Container] feat(#1168): Add getAliasedId to the container contract (#1171)

# Description

The container contract could say that an alias exists, and it could
resolve one, but it could not say what an alias points to.

This adds a new method called `getAliasedId` that returns the id an
alias is bound to. For example:

```php
$container->bindAlias(ClassAFromParent::class, ClassA::class);

$container->getAliasedId(ClassAFromParent::class); // ClassA::class
```

The protected `getAlias` becomes that method, so the container keeps one
way to read the alias map instead of two. The method reads one hop, so
the caller controls how far to follow a chain.

`isService`, `isSingleton`, and `isPublished` stay literal, because a
method that followed the alias map would need an accessor that followed
it too. `ChildContainer` answers `isAlias` from the parent, so it
answers `getAliasedId` from the parent as well.

Closes #1168.

## Types of changes

- [x] 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)_
- [ ] Breaking change _(fix or feature that would cause existing
functionality to change)_
- [ ] Documentation improvement

## Changes

- **`ContainerContract`** — declares `getAliasedId`.
- **`Container`** — promotes `getAlias` to the public `getAliasedId`.
- **`ChildContainer`** — answers `getAliasedId` from the parent, to
agree with `isAlias`.
- **`NativeChildContainer`** — renames its override to match. No
behavior change.
- **`README.md`** — documents `getAliasedId`.

12 of 0 new or added lines in 0 files covered. (NaN%)

12766 of 12766 relevant lines covered (100.0%)

24.77 hits per line

Jobs
ID Job ID Ran Files Coverage
1 31150269722.1 07 Aug 2026 05:22AM UTC 1182
100.0
GitHub Action Run
Source Files on build 31150269722
  • Tree
  • List 1182
  • Changed 4
  • Source Changed 4
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #31150269722
  • 68c2c96f on github
  • Prev Build on 26.x (#31150170942)
  • Next Build on 26.x (#31166672701)
  • 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