diff --git a/src/ArchPresets/Security.php b/src/ArchPresets/Security.php index 8f756e44..2beafa83 100644 --- a/src/ArchPresets/Security.php +++ b/src/ArchPresets/Security.php @@ -23,7 +23,15 @@ final class Security extends AbstractPreset 'tempnam', 'str_shuffle', 'shuffle', - 'array_rand' + 'array_rand', + 'eval', + 'exec', + 'shell_exec', + 'system', + 'passthru', + 'create_function', + 'unserialize', + 'extract', ])->not->toBeUsed(); } } diff --git a/tests/Arch.php b/tests/Arch.php index d3af0dbd..37420691 100644 --- a/tests/Arch.php +++ b/tests/Arch.php @@ -4,14 +4,15 @@ use Pest\Expectation; arch()->preset()->base()->ignoring([ Expectation::class, - 'eval', 'debug_backtrace', 'usleep', ]); arch()->preset()->strict(); -arch()->preset()->security(); +arch()->preset()->security()->ignoring([ + 'eval', +]); arch('globals') ->expect(['dd', 'dump', 'ray', 'die', 'var_dump', 'sleep'])