Skip to content

Commit 996be53

Browse files
authored
Merge pull request #20 from BedrockStreaming/feat/add-declare_strict_types-rule
add rule 'declare_strict_types' => true
2 parents ab22250 + e254b0b commit 996be53

File tree

5 files changed

+11
-0
lines changed

5 files changed

+11
-0
lines changed

src/BedrockStreaming.php

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace M6Web\CS\Config;
46

57
use PhpCsFixer\Config;
@@ -23,6 +25,7 @@ public function getRules(): array
2325
'braces' => [
2426
'allow_single_line_closure' => true,
2527
],
28+
'declare_strict_types' => true,
2629
'global_namespace_import' => [
2730
'import_classes' => false,
2831
'import_constants' => false,

src/Php71.php

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace M6Web\CS\Config;
46

57
use PhpCsFixer\Config;

src/Php72.php

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace M6Web\CS\Config;
46

57
use PhpCsFixer\Config;

src/Php73.php

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace M6Web\CS\Config;
46

57
use PhpCsFixer\Config;

src/Php74.php

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace M6Web\CS\Config;
46

57
use PhpCsFixer\Config;

0 commit comments

Comments
 (0)