From a5e6f613272c8fff9a8a98a0bc84455a785bdac6 Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Tue, 2 Jul 2024 08:59:24 +0200 Subject: [PATCH] Force strict types (#6) --- .php-cs-fixer.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.php-cs-fixer.php b/.php-cs-fixer.php index 1dab3c0..7d3eeb4 100644 --- a/.php-cs-fixer.php +++ b/.php-cs-fixer.php @@ -1,4 +1,6 @@ setRules([ '@PER-CS' => true, '@PER-CS:risky' => true, + // Force strict types declaration in all files. Requires PHP >= 7.0. + 'declare_strict_types' => true, // Unused `use` statements must be removed. 'no_unused_imports' => true, // Multi-line arrays, arguments list, parameters list and `match` expressions must have a trailing comma.