mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
chore: optimize preset
This commit is contained in:
@ -14,12 +14,12 @@ final class Strict extends AbstractPreset
|
||||
*/
|
||||
public function execute(): void
|
||||
{
|
||||
foreach ($this->userNamespaces as $namespace) {
|
||||
$this->expectations[] = expect([
|
||||
'sleep',
|
||||
'usleep',
|
||||
])->not->toBeUsed();
|
||||
|
||||
foreach ($this->userNamespaces as $namespace) {
|
||||
$this->expectations[] = expect($namespace)
|
||||
->toUseStrictTypes();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user