#1353·pest

[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

php
arch('')->preset()->strict();

Image

But this class must necessarily be abstract, so it cannot be final.

How to Reproduce

bash
clear && vendor/bin/pest --arch

Image

Image

Image

Image

Sample Repository

https://github.com/19950512/pestphp-poc-arch

Pest Version

3.7

PHP Version

8.3.15 (CLI)

Operation System

Linux

Notes

No response