Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

declare(strict_types=1);

use Rector\TypeDeclaration\Rector\StmtsAwareInterface\DeclareStrictTypesRector;
use Rector\TypeDeclaration\Rector\ClassMethod\StrictStringParamConcatRector;
use Rector\Set\ValueObject\LevelSetList;
use Rector\Set\ValueObject\SetList;
Expand All @@ -15,6 +16,9 @@
LevelSetList::UP_TO_PHP_80,
SetList::TYPE_DECLARATION,
])
->withRules([
DeclareStrictTypesRector::class,
])
->withSkip([
StrictStringParamConcatRector::class => [
__DIR__ . '/src/Database/Adapters/Idiorm/Statements/Criteria.php',
Expand Down
2 changes: 2 additions & 0 deletions src/App/Adapters/AppAdapter.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* Quantum PHP Framework
*
Expand Down
2 changes: 2 additions & 0 deletions src/App/Adapters/ConsoleAppAdapter.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* Quantum PHP Framework
*
Expand Down
2 changes: 2 additions & 0 deletions src/App/Adapters/WebAppAdapter.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* Quantum PHP Framework
*
Expand Down
2 changes: 2 additions & 0 deletions src/App/App.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* Quantum PHP Framework
*
Expand Down
2 changes: 2 additions & 0 deletions src/App/Contracts/AppInterface.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* Quantum PHP Framework
*
Expand Down
2 changes: 2 additions & 0 deletions src/App/Enums/ExceptionMessages.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* Quantum PHP Framework
*
Expand Down
2 changes: 2 additions & 0 deletions src/App/Enums/ReservedKeys.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* Quantum PHP Framework
*
Expand Down
2 changes: 2 additions & 0 deletions src/App/Factories/AppFactory.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* Quantum PHP Framework
*
Expand Down
5 changes: 4 additions & 1 deletion src/App/Traits/AppTrait.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* Quantum PHP Framework
*
Expand All @@ -15,6 +17,7 @@
namespace Quantum\App\Traits;

use Quantum\Config\Exceptions\ConfigException;
use Quantum\Loader\Exceptions\LoaderException;
use Quantum\Logger\Factories\LoggerFactory;
use Quantum\Lang\Exceptions\LangException;
use Quantum\App\Exceptions\BaseException;
Expand Down Expand Up @@ -107,7 +110,7 @@ protected function loadModuleHelperFunctions(): void
* @return void
* @throws DiException
* @throws ReflectionException
* @throws ConfigException
* @throws ConfigException|LoaderException
*/
protected function loadAppConfig()
{
Expand Down
2 changes: 2 additions & 0 deletions src/App/Traits/ConsoleAppTrait.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* Quantum PHP Framework
*
Expand Down
6 changes: 4 additions & 2 deletions src/App/Traits/WebAppTrait.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* Quantum PHP Framework
*
Expand Down Expand Up @@ -87,7 +89,7 @@ private function setupViewCache(): ViewCache
/**
* @throws ConfigException
* @throws DiException
* @throws ReflectionException
* @throws ReflectionException|LoaderException
*/
private function handleCors(Response $response): void
{
Expand All @@ -96,7 +98,7 @@ private function handleCors(Response $response): void
}

foreach (config()->get('cors') as $key => $value) {
$response->setHeader($key, $value);
$response->setHeader($key, (string) $value);
}
}
}
2 changes: 2 additions & 0 deletions src/Archive/Adapters/PharAdapter.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* Quantum PHP Framework
*
Expand Down
2 changes: 2 additions & 0 deletions src/Archive/Adapters/ZipAdapter.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* Quantum PHP Framework
*
Expand Down
2 changes: 2 additions & 0 deletions src/Archive/Archive.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* Quantum PHP Framework
*
Expand Down
2 changes: 2 additions & 0 deletions src/Archive/Contracts/ArchiveInterface.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* Quantum PHP Framework
*
Expand Down
2 changes: 2 additions & 0 deletions src/Archive/Enums/ExceptionMessages.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* Quantum PHP Framework
*
Expand Down
2 changes: 2 additions & 0 deletions src/Archive/Factories/ArchiveFactory.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* Quantum PHP Framework
*
Expand Down
2 changes: 2 additions & 0 deletions src/Asset/Asset.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* Quantum PHP Framework
*
Expand Down
2 changes: 2 additions & 0 deletions src/Asset/AssetManager.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* Quantum PHP Framework
*
Expand Down
2 changes: 2 additions & 0 deletions src/Asset/Enums/ExceptionMessages.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* Quantum PHP Framework
*
Expand Down
2 changes: 2 additions & 0 deletions src/Auth/Adapters/JwtAuthAdapter.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* Quantum PHP Framework
*
Expand Down
2 changes: 2 additions & 0 deletions src/Auth/Adapters/SessionAuthAdapter.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* Quantum PHP Framework
*
Expand Down
2 changes: 2 additions & 0 deletions src/Auth/Auth.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* Quantum PHP Framework
*
Expand Down
2 changes: 2 additions & 0 deletions src/Auth/Contracts/AuthServiceInterface.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* Quantum PHP Framework
*
Expand Down
2 changes: 2 additions & 0 deletions src/Auth/Contracts/AuthenticatableInterface.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* Quantum PHP Framework
*
Expand Down
2 changes: 2 additions & 0 deletions src/Auth/Enums/AuthKeys.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* Quantum PHP Framework
*
Expand Down
2 changes: 2 additions & 0 deletions src/Auth/Enums/ExceptionMessages.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* Quantum PHP Framework
*
Expand Down
2 changes: 2 additions & 0 deletions src/Auth/Factories/AuthFactory.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* Quantum PHP Framework
*
Expand Down
2 changes: 2 additions & 0 deletions src/Auth/Traits/AuthTrait.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* Quantum PHP Framework
*
Expand Down
2 changes: 2 additions & 0 deletions src/Auth/User.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* Quantum PHP Framework
*
Expand Down
2 changes: 2 additions & 0 deletions src/Cache/Adapters/DatabaseAdapter.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* Quantum PHP Framework
*
Expand Down
2 changes: 2 additions & 0 deletions src/Cache/Adapters/FileAdapter.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* Quantum PHP Framework
*
Expand Down
2 changes: 2 additions & 0 deletions src/Cache/Adapters/MemcachedAdapter.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* Quantum PHP Framework
*
Expand Down
2 changes: 2 additions & 0 deletions src/Cache/Adapters/RedisAdapter.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* Quantum PHP Framework
*
Expand Down
2 changes: 2 additions & 0 deletions src/Cache/Cache.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* Quantum PHP Framework
*
Expand Down
2 changes: 2 additions & 0 deletions src/Cache/Enums/ExceptionMessages.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* Quantum PHP Framework
*
Expand Down
2 changes: 2 additions & 0 deletions src/Cache/Factories/CacheFactory.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* Quantum PHP Framework
*
Expand Down
2 changes: 2 additions & 0 deletions src/Captcha/Adapters/HcaptchaAdapter.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* Quantum PHP Framework
*
Expand Down
2 changes: 2 additions & 0 deletions src/Captcha/Adapters/RecaptchaAdapter.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* Quantum PHP Framework
*
Expand Down
2 changes: 2 additions & 0 deletions src/Captcha/Captcha.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* Quantum PHP Framework
*
Expand Down
2 changes: 2 additions & 0 deletions src/Captcha/Contracts/CaptchaInterface.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* Quantum PHP Framework
*
Expand Down
4 changes: 3 additions & 1 deletion src/Captcha/Factories/CaptchaFactory.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/**
* Quantum PHP Framework
*
Expand All @@ -16,8 +18,8 @@

use Quantum\Captcha\Exceptions\CaptchaException;
use Quantum\Captcha\Adapters\RecaptchaAdapter;
use Quantum\Captcha\Adapters\HcaptchaAdapter;
use Quantum\Config\Exceptions\ConfigException;
use Quantum\Captcha\Adapters\HcaptchaAdapter;
use Quantum\App\Exceptions\BaseException;
use Quantum\Di\Exceptions\DiException;
use Quantum\HttpClient\HttpClient;
Expand Down
Loading
Loading