Skip to content

Commit

Permalink
Force strict types (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
mlocati authored Jul 2, 2024
1 parent 25ac5bd commit a5e6f61
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .php-cs-fixer.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php

declare(strict_types=1);
/*
* This document has been generated with
* https://mlocati.github.io/php-cs-fixer-configurator/#version:3.59.3|configurator
Expand All @@ -11,6 +13,8 @@
->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.
Expand Down

0 comments on commit a5e6f61

Please sign in to comment.