[4.x] Abstract classes cannot be final - strict preset
Author: 19950512Created Feb 11, 2025Updated Sep 20, 2026
Labelsbug
What Happened
When i use arch()->preset()->strict() in my tests, i get an error
arch('')->preset()->strict();But this class must necessarily be abstract, so it cannot be final.
How to Reproduce
clear && vendor/bin/pest --archSample Repository
https://github.com/19950512/pestphp-poc-arch
Pest Version
3.7
PHP Version
8.3.15 (CLI)
Operation System
Linux
Notes
No response
Source: pestphp/pest