mirror of
https://github.com/pestphp/pest.git
synced 2026-03-07 00:07:22 +01:00
feat(presets): more rules
This commit is contained in:
@ -15,6 +15,11 @@ final class Strict extends AbstractPreset
|
||||
public function execute(): void
|
||||
{
|
||||
foreach ($this->userNamespaces as $namespace) {
|
||||
$this->expectations[] = expect([
|
||||
'sleep',
|
||||
'usleep',
|
||||
])->not->toBeUsed();
|
||||
|
||||
$this->expectations[] = expect($namespace)
|
||||
->toUseStrictTypes();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user