Skip to content

Commit

Permalink
Strict typing
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc André Audet committed Jan 27, 2018
1 parent c5a24e9 commit bca0735
Show file tree
Hide file tree
Showing 29 changed files with 58 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/Autoloader.php
Expand Up @@ -13,6 +13,8 @@
* @since 5.0.0
*/

declare(strict_types=1);

namespace Cervo;

/**
Expand Down
2 changes: 2 additions & 0 deletions src/Config/ArrayConfig.php
Expand Up @@ -13,6 +13,8 @@
* @since 5.0.0
*/

declare(strict_types=1);

namespace Cervo\Config;

/**
Expand Down
2 changes: 2 additions & 0 deletions src/Config/BaseConfig.php
Expand Up @@ -13,6 +13,8 @@
* @since 5.0.0
*/

declare(strict_types=1);

namespace Cervo\Config;

/**
Expand Down
2 changes: 2 additions & 0 deletions src/Config/JsonConfig.php
Expand Up @@ -13,6 +13,8 @@
* @since 5.0.0
*/

declare(strict_types=1);

namespace Cervo\Config;

/**
Expand Down
2 changes: 2 additions & 0 deletions src/Context.php
Expand Up @@ -13,6 +13,8 @@
* @since 5.0.0
*/

declare(strict_types=1);

namespace Cervo;

use Cervo\Config\BaseConfig;
Expand Down
2 changes: 2 additions & 0 deletions src/ControllerReflection.php
Expand Up @@ -13,6 +13,8 @@
* @since 5.0.0
*/

declare(strict_types=1);

namespace Cervo;

use Cervo\Exceptions\ControllerReflection\InvalidControllerException;
Expand Down
2 changes: 2 additions & 0 deletions src/Core.php
Expand Up @@ -13,6 +13,8 @@
* @since 5.0.0
*/

declare(strict_types=1);

namespace Cervo;

use Cervo\Config\BaseConfig;
Expand Down
2 changes: 2 additions & 0 deletions src/Events.php
Expand Up @@ -13,6 +13,8 @@
* @since 5.0.0
*/

declare(strict_types=1);

namespace Cervo;

use Cervo\Interfaces\SingletonInterface;
Expand Down
4 changes: 2 additions & 2 deletions src/Exceptions/Context/InvalidProviderException.php
@@ -1,7 +1,5 @@
<?php

declare(strict_types=1);

/**
* This file is part of the Cervo package.
*
Expand All @@ -15,6 +13,8 @@
* @since 5.0.0
*/

declare(strict_types=1);

namespace Cervo\Exceptions\Router;

use Cervo\Exceptions\ContextException;
Expand Down
2 changes: 2 additions & 0 deletions src/Exceptions/ContextException.php
Expand Up @@ -13,6 +13,8 @@
* @since 5.0.0
*/

declare(strict_types=1);

namespace Cervo\Exceptions;

class ContextException extends \RuntimeException
Expand Down
Expand Up @@ -13,6 +13,8 @@
* @since 5.0.0
*/

declare(strict_types=1);

namespace Cervo\Exceptions\ControllerReflection;

use Cervo\Exceptions\ControllerReflectionException;
Expand Down
2 changes: 2 additions & 0 deletions src/Exceptions/ControllerReflectionException.php
Expand Up @@ -13,6 +13,8 @@
* @since 5.0.0
*/

declare(strict_types=1);

namespace Cervo\Exceptions;

class ControllerReflectionException extends \RuntimeException
Expand Down
2 changes: 2 additions & 0 deletions src/Exceptions/Router/InvalidMiddlewareException.php
Expand Up @@ -13,6 +13,8 @@
* @since 5.0.0
*/

declare(strict_types=1);

namespace Cervo\Exceptions\Router;

use Cervo\Exceptions\RouterException;
Expand Down
2 changes: 2 additions & 0 deletions src/Exceptions/Router/MethodNotAllowedException.php
Expand Up @@ -13,6 +13,8 @@
* @since 5.0.0
*/

declare(strict_types=1);

namespace Cervo\Exceptions\Router;

use Cervo\Exceptions\RouterException;
Expand Down
2 changes: 2 additions & 0 deletions src/Exceptions/Router/RouteMiddlewareFailedException.php
Expand Up @@ -13,6 +13,8 @@
* @since 5.0.0
*/

declare(strict_types=1);

namespace Cervo\Exceptions\Router;

use Cervo\Exceptions\RouterException;
Expand Down
2 changes: 2 additions & 0 deletions src/Exceptions/Router/RouteNotFoundException.php
Expand Up @@ -13,6 +13,8 @@
* @since 5.0.0
*/

declare(strict_types=1);

namespace Cervo\Exceptions\Router;

use Cervo\Exceptions\RouterException;
Expand Down
2 changes: 2 additions & 0 deletions src/Exceptions/RouterException.php
Expand Up @@ -13,6 +13,8 @@
* @since 5.0.0
*/

declare(strict_types=1);

namespace Cervo\Exceptions;

class RouterException extends \RuntimeException
Expand Down
2 changes: 2 additions & 0 deletions src/Exceptions/SingletonException.php
Expand Up @@ -13,6 +13,8 @@
* @since 5.0.0
*/

declare(strict_types=1);

namespace Cervo\Exceptions;

class SingletonException extends \RuntimeException
Expand Down
2 changes: 2 additions & 0 deletions src/Exceptions/Singletons/InvalidClassException.php
Expand Up @@ -13,6 +13,8 @@
* @since 5.0.0
*/

declare(strict_types=1);

namespace Cervo\Exceptions\Singletons;

use Cervo\Exceptions\SingletonException;
Expand Down
2 changes: 2 additions & 0 deletions src/Interfaces/ControllerInterface.php
Expand Up @@ -13,6 +13,8 @@
* @since 5.0.0
*/

declare(strict_types=1);

namespace Cervo\Interfaces;

/**
Expand Down
2 changes: 2 additions & 0 deletions src/Interfaces/MiddlewareInterface.php
Expand Up @@ -13,6 +13,8 @@
* @since 5.0.0
*/

declare(strict_types=1);

namespace Cervo\Interfaces;

use Cervo\Route;
Expand Down
2 changes: 2 additions & 0 deletions src/Interfaces/ProviderInterface.php
Expand Up @@ -13,6 +13,8 @@
* @since 5.0.0
*/

declare(strict_types=1);

namespace Cervo\Interfaces;

use Cervo\Context;
Expand Down
2 changes: 2 additions & 0 deletions src/Interfaces/SingletonInterface.php
Expand Up @@ -13,6 +13,8 @@
* @since 5.0.0
*/

declare(strict_types=1);

namespace Cervo\Interfaces;

use Cervo\Context;
Expand Down
2 changes: 2 additions & 0 deletions src/ModulesManager.php
Expand Up @@ -13,6 +13,8 @@
* @since 5.0.0
*/

declare(strict_types=1);

namespace Cervo;

/**
Expand Down
2 changes: 2 additions & 0 deletions src/Route.php
Expand Up @@ -13,6 +13,8 @@
* @since 5.0.0
*/

declare(strict_types=1);

namespace Cervo;

/**
Expand Down
2 changes: 2 additions & 0 deletions src/Router.php
Expand Up @@ -13,6 +13,8 @@
* @since 5.0.0
*/

declare(strict_types=1);

namespace Cervo;

use Cervo\Exceptions\Router\InvalidMiddlewareException;
Expand Down
2 changes: 2 additions & 0 deletions src/Singletons.php
Expand Up @@ -13,6 +13,8 @@
* @since 5.0.0
*/

declare(strict_types=1);

namespace Cervo;

use Cervo\Exceptions\Singletons\InvalidClassException;
Expand Down
2 changes: 2 additions & 0 deletions src/Utils/ClassUtils.php
Expand Up @@ -13,6 +13,8 @@
* @since 5.0.0
*/

declare(strict_types=1);

namespace Cervo\Utils;

/**
Expand Down
2 changes: 2 additions & 0 deletions src/Utils/PathUtils.php
Expand Up @@ -13,6 +13,8 @@
* @since 5.0.0
*/

declare(strict_types=1);

namespace Cervo\Utils;

/**
Expand Down

0 comments on commit bca0735

Please sign in to comment.