Skip to content

Commit

Permalink
Merge pull request #20 from BedrockStreaming/feat/add-declare_strict_…
Browse files Browse the repository at this point in the history
…types-rule

add rule 'declare_strict_types' => true
  • Loading branch information
sztan committed Apr 25, 2022
2 parents ab22250 + e254b0b commit 996be53
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/BedrockStreaming.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace M6Web\CS\Config;

use PhpCsFixer\Config;
Expand All @@ -23,6 +25,7 @@ public function getRules(): array
'braces' => [
'allow_single_line_closure' => true,
],
'declare_strict_types' => true,
'global_namespace_import' => [
'import_classes' => false,
'import_constants' => false,
Expand Down
2 changes: 2 additions & 0 deletions src/Php71.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace M6Web\CS\Config;

use PhpCsFixer\Config;
Expand Down
2 changes: 2 additions & 0 deletions src/Php72.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace M6Web\CS\Config;

use PhpCsFixer\Config;
Expand Down
2 changes: 2 additions & 0 deletions src/Php73.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace M6Web\CS\Config;

use PhpCsFixer\Config;
Expand Down
2 changes: 2 additions & 0 deletions src/Php74.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace M6Web\CS\Config;

use PhpCsFixer\Config;
Expand Down

0 comments on commit 996be53

Please sign in to comment.