From 94e86955e67895f3979e98809d100caf7f435e34 Mon Sep 17 00:00:00 2001 From: Joseph Scott Date: Tue, 6 Aug 2024 20:56:44 -0600 Subject: [PATCH] Include `declare_strict_types` as true by default --- CHANGELOG.md | 3 +++ src/josephscott/phpcsfixer-config.php | 1 + 2 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 35964f0..45245e2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## 0.0.2 : 2024-08-06 +- Include `declare_strict_types` as true by default + ## 0.0.1 : 2024-05-22 - First working version diff --git a/src/josephscott/phpcsfixer-config.php b/src/josephscott/phpcsfixer-config.php index 46c81c0..cfcc0f4 100644 --- a/src/josephscott/phpcsfixer-config.php +++ b/src/josephscott/phpcsfixer-config.php @@ -62,6 +62,7 @@ class PHPCSFixer_Config { 'declare_equal_normalize' => [ 'space' => 'single', ], + 'declare_strict_types' => true, 'elseif' => true, 'encoding' => true, 'full_opening_tag' => true,