FastRoute icon indicating copy to clipboard operation
FastRoute copied to clipboard

Immutable value objects for dispatch results

Open gsteel opened this issue 1 month ago • 0 comments

Whilst working on the Mezzio adapter for FastRoute, I noticed it's "impossible" to create dispatch results without writing to soft @readonly properties.

Psalm hates that… so I took the liberty of dropping PHP 8.1, and making the results readonly classes with constructors.

Mainly this is useful in testing…

I've also added 8.5 to CI

Sorry if this patch is doing too much 😬

gsteel avatar Nov 25 '25 21:11 gsteel