pest icon indicating copy to clipboard operation
pest copied to clipboard

[Bug]: Class "Spoofchecker" not found

Open dp-anto opened this issue 2 months ago • 2 comments

What Happened

When I use arch()->preset()->php(); I get Class "Spoofchecker" not found.

I don't understand which dependencies I should install. The documentation https://pestphp.com/docs/installation and the packagist page https://packagist.org/packages/pestphp/pest do not mention any related dependency or extension.

How to Reproduce

Simply add `arch()->preset()->php(); to your tests.

Sample Repository

No response

Pest Version

4.1.6

PHP Version

8.4.15

Operation System

Linux

Notes

No response

dp-anto avatar Dec 11 '25 17:12 dp-anto

It's because Pest now requires the intl extension for the suspicious characters check.

It was brought up in https://github.com/pestphp/pest/issues/1509, I still think that it would make sense to either remove that as a default rule, or if it's wanted to be kept, show a more useful exception. https://github.com/pestphp/pest/issues/1509#issuecomment-3297284804

I'll have a look at adding that exception tomorrow, and hopefully in future we could remove the rule by default.

owenvoke avatar Dec 11 '25 22:12 owenvoke

@owenvoke Thank you

dp-anto avatar Dec 12 '25 09:12 dp-anto