Skip to content

Commit 5a52355

Browse files
committed
Enable strict types and code cleanup
Summary: * Enable PHP 7 strict types. * Add header comments. * Remove extra blank line in `composer.json`
1 parent d9d1a72 commit 5a52355

File tree

4 files changed

+14
-1
lines changed

4 files changed

+14
-1
lines changed

composer.json

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
"HTTP header"
1111
],
1212
"homepage": "https://pierrehenry.be",
13-
1413
"type": "library",
1514
"require": {
1615
"php": ">=8.0",

src/Exception.php

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
<?php
2+
/**
3+
* @author Pierre-Henry Soria <hi@ph7.me>
4+
* @license MIT License
5+
*/
26

37
namespace PH7\PhpHttpResponseHeader;
48

src/Http.php

+6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
<?php
2+
/**
3+
* @author Pierre-Henry Soria <hi@ph7.me>
4+
* @license MIT License
5+
*/
6+
7+
declare(strict_types=1);
28

39
namespace PH7\PhpHttpResponseHeader;
410

tests/HttpTest.php

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
<?php
2+
/**
3+
* @author Pierre-Henry Soria <hi@ph7.me>
4+
* @license MIT License
5+
*/
26

37
declare(strict_types=1);
48

0 commit comments

Comments
 (0)