From 1469d85e0ead0449514f5981f638fe46512e8916 Mon Sep 17 00:00:00 2001 From: Lucas Michot Date: Fri, 18 Oct 2024 14:24:54 +0200 Subject: [PATCH] Enforce visibility for PHPUnit `setUp` and `tearDown` methods. --- resources/presets/laravel.php | 1 + 1 file changed, 1 insertion(+) diff --git a/resources/presets/laravel.php b/resources/presets/laravel.php index 0ed92749..bca1c57f 100644 --- a/resources/presets/laravel.php +++ b/resources/presets/laravel.php @@ -142,6 +142,7 @@ 'ordered_interfaces' => true, 'ordered_traits' => true, 'php_unit_method_casing' => ['case' => 'snake_case'], + 'php_unit_set_up_tear_down_visibility' => true, 'phpdoc_align' => [ 'align' => 'left', 'spacing' => [