Skip to content

Commit 1f0e8b4

Browse files
authored
Merge pull request #379 from kenjis/add-strict_types
refactor: add `declare(strict_types=1)`
2 parents b40c589 + 0999e6f commit 1f0e8b4

File tree

117 files changed

+237
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

117 files changed

+237
-1
lines changed

.php-cs-fixer.dist.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
use CodeIgniter\CodingStandard\CodeIgniter4;
46
use Nexus\CsConfig\Factory;
57
use PhpCsFixer\Finder;
@@ -13,7 +15,9 @@
1315
->exclude('build')
1416
->append([__FILE__]);
1517

16-
$overrides = [];
18+
$overrides = [
19+
'declare_strict_types' => true,
20+
];
1721

1822
$options = [
1923
'finder' => $finder,

src/Auth.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace CodeIgniter\Shield;
46

57
use CodeIgniter\Router\RouteCollection;

src/Authentication/Actions/ActionInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace CodeIgniter\Shield\Authentication\Actions;
46

57
use CodeIgniter\HTTP\IncomingRequest;

src/Authentication/Actions/Email2FA.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace CodeIgniter\Shield\Authentication\Actions;
46

57
use CodeIgniter\HTTP\IncomingRequest;

src/Authentication/Actions/EmailActivator.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace CodeIgniter\Shield\Authentication\Actions;
46

57
use CodeIgniter\Exceptions\PageNotFoundException;

src/Authentication/Authentication.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace CodeIgniter\Shield\Authentication;
46

57
use CodeIgniter\Shield\Config\Auth as AuthConfig;

src/Authentication/AuthenticationException.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace CodeIgniter\Shield\Authentication;
46

57
use CodeIgniter\HTTP\Exceptions\HTTPException;

src/Authentication/AuthenticatorInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace CodeIgniter\Shield\Authentication;
46

57
use CodeIgniter\Shield\Entities\User;

src/Authentication/Authenticators/AccessTokens.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace CodeIgniter\Shield\Authentication\Authenticators;
46

57
use CodeIgniter\HTTP\IncomingRequest;

src/Authentication/Authenticators/Session.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace CodeIgniter\Shield\Authentication\Authenticators;
46

57
use CodeIgniter\Config\Factories;

0 commit comments

Comments
 (0)