Skip to content

Commit 0bcdd24

Browse files
committed
Add strict types declaration
1 parent 49b7588 commit 0bcdd24

File tree

5 files changed

+10
-0
lines changed

5 files changed

+10
-0
lines changed

src/Cache.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
* @license https://github.com/slimphp/Slim-HttpCache/blob/master/LICENSE.md (MIT License)
66
*/
77

8+
declare(strict_types=1);
9+
810
namespace Slim\HttpCache;
911

1012
use Psr\Http\Message\ResponseInterface;

src/CacheProvider.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
* @license https://github.com/slimphp/Slim-HttpCache/blob/master/LICENSE.md (MIT License)
66
*/
77

8+
declare(strict_types=1);
9+
810
namespace Slim\HttpCache;
911

1012
use InvalidArgumentException;

tests/CacheProviderTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
* @license https://github.com/slimphp/Slim-HttpCache/blob/master/LICENSE.md (MIT License)
66
*/
77

8+
declare(strict_types=1);
9+
810
namespace Slim\HttpCache\Tests;
911

1012
use InvalidArgumentException;

tests/CacheTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
* @license https://github.com/slimphp/Slim-HttpCache/blob/master/LICENSE.md (MIT License)
66
*/
77

8+
declare(strict_types=1);
9+
810
namespace Slim\HttpCache\Tests;
911

1012
use PHPUnit\Framework\TestCase;

tests/bootstrap.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,6 @@
55
* @license https://github.com/slimphp/Slim-HttpCache/blob/master/LICENSE.md (MIT License)
66
*/
77

8+
declare(strict_types=1);
9+
810
require __DIR__.'/../vendor/autoload.php';

0 commit comments

Comments
 (0)