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

valkyrjaio / valkyrja-php / 39899214532
100%

Build:
DEFAULT BRANCH: 26.x
Ran 23 Oct 2026 04:16AM UTC
Jobs 1
Files 1455
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

23 Oct 2026 04:13AM UTC coverage: 100.0%. Remained the same
39899214532

push

github

web-flow
[Grpc] feat!: Name the route attribute after the route it builds and declare its whole field set (#1395)

# Description

Name the gRPC route attribute `Route`, and give it an argument for every
field of the route it
builds: the handler and the five middleware stage lists, beside the two
message types it carried
already. `convention/ATTRIBUTES.md` requires both, and the attribute
carried gRPC's own `.proto`
noun and only part of the field set, so neither a handler nor a
middleware list was declarable
from the attribute.

The collector no longer derives a handler from the attributed method. It
reads the handler the
route names, from either spelling, and rejects a route that names none,
which is what Http, Cli
and Queue each do. A gRPC handler therefore no longer has to be a
`public static` method, and the
attribute is repeatable like its three siblings, so one method can
answer several remote methods.

The derived handler checked its own return type, and that check goes
with it. A handler that
returns the wrong type now fails as a `TypeError`, as it does in Http,
Cli and Queue, because PHP
cannot type a callable's return.

## 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)_
- [ ] Documentation improvement

## Changes

- **`Grpc/Routing/Attribute/Route.php`** — renamed from `Method.php`,
repeatable, and takes the
  handler and the five middleware stage lists
- **`Grpc/Routing/Attribute/Route/`** — renamed from `Method/`, and
`MethodHandler` is now
  `RouteHandler`
- **`Grpc/Routing/Collector/AttributeRouteCollector.php`** — resolves
the handler from either
spelling, carries every new argument into the route, and throws when no
handler is named
-
... (continued)

21 of 21 new or added lines in 2 files covered. (100.0%)

16521 of 16521 relevant lines covered (100.0%)

31.01 hits per line

Jobs
ID Job ID Ran Files Coverage
1 39899214532.1 23 Oct 2026 04:16AM UTC 1455
100.0
GitHub Action Run
Source Files on build 39899214532
  • Tree
  • List 1455
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #39899214532
  • a907eb6a on github
  • Prev Build on 26.x (#39886888238)
  • Next Build on 26.x (#39899610005)
  • 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