Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit f5a346d

Browse files
committed
Merge pull request #7 from webimpress/declare-strict-types
Added declare strict types
2 parents cd9e77c + b32a8c2 commit f5a346d

21 files changed

+53
-0
lines changed

src/AuthenticationInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
* @license https://github.com/zendframework/zend-expressive-authentication/blob/master/LICENSE.md New BSD License
66
*/
77

8+
declare(strict_types=1);
9+
810
namespace Zend\Expressive\Authentication;
911

1012
use Psr\Http\Message\ServerRequestInterface;

src/AuthenticationMiddleware.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
* @license https://github.com/zendframework/zend-expressive-authentication/blob/master/LICENSE.md New BSD License
66
*/
77

8+
declare(strict_types=1);
9+
810
namespace Zend\Expressive\Authentication;
911

1012
use Interop\Http\Server\MiddlewareInterface;

src/AuthenticationMiddlewareFactory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
* @license https://github.com/zendframework/zend-expressive-authentication/blob/master/LICENSE.md New BSD License
66
*/
77

8+
declare(strict_types=1);
9+
810
namespace Zend\Expressive\Authentication;
911

1012
use Psr\Container\ContainerInterface;

src/ConfigProvider.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
* @license https://github.com/zendframework/zend-expressive-authentication/blob/master/LICENSE.md New BSD License
66
*/
77

8+
declare(strict_types=1);
9+
810
namespace Zend\Expressive\Authentication;
911

1012
class ConfigProvider

src/Exception/ExceptionInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
* @license https://github.com/zendframework/zend-expressive-authentication/blob/master/LICENSE.md New BSD License
66
*/
77

8+
declare(strict_types=1);
9+
810
namespace Zend\Expressive\Authentication\Exception;
911

1012
/**

src/Exception/InvalidConfigException.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
* @license https://github.com/zendframework/zend-expressive-authentication/blob/master/LICENSE.md New BSD License
66
*/
77

8+
declare(strict_types=1);
9+
810
namespace Zend\Expressive\Authentication\Exception;
911

1012
class InvalidConfigException extends RuntimeException implements ExceptionInterface

src/Exception/RuntimeException.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
* @license https://github.com/zendframework/zend-expressive-authentication/blob/master/LICENSE.md New BSD License
66
*/
77

8+
declare(strict_types=1);
9+
810
namespace Zend\Expressive\Authentication\Exception;
911

1012
class RuntimeException extends \RuntimeException implements

src/ResponsePrototypeTrait.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
* @copyright Copyright (c) 2017 Zend Technologies USA Inc. (https://www.zend.com)
55
* @license https://github.com/zendframework/zend-expressive-authentication/blob/master/LICENSE.md New BSD License
66
*/
7+
8+
declare(strict_types=1);
9+
710
namespace Zend\Expressive\Authentication;
811

912
use Psr\Container\ContainerInterface;

src/UserInterface.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
* @copyright Copyright (c) 2017 Zend Technologies USA Inc. (https://www.zend.com)
55
* @license https://github.com/zendframework/zend-expressive-authentication/blob/master/LICENSE.md New BSD License
66
*/
7+
8+
declare(strict_types=1);
9+
710
namespace Zend\Expressive\Authentication;
811

912
interface UserInterface

src/UserRepository/Htpasswd.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
* @copyright Copyright (c) 2017 Zend Technologies USA Inc. (https://www.zend.com)
55
* @license https://github.com/zendframework/zend-expressive-authentication/blob/master/LICENSE.md New BSD License
66
*/
7+
8+
declare(strict_types=1);
9+
710
namespace Zend\Expressive\Authentication\UserRepository;
811

912
use Zend\Expressive\Authentication\Exception;

0 commit comments

Comments
 (0)