From 2944122dd2593be2c1235bffd0b893b690c7affc Mon Sep 17 00:00:00 2001 From: Geert Eltink Date: Tue, 12 Dec 2017 14:12:43 +0100 Subject: [PATCH] Added declare strict types --- bin/clear-config-cache.php | 2 ++ config/autoload/dependencies.global.php | 2 ++ config/autoload/development.local.php.dist | 3 ++- config/autoload/local.php.dist | 3 ++- config/autoload/zend-expressive.global.php | 2 ++ config/config.php | 2 ++ config/development.config.php.dist | 3 ++- config/pipeline.php | 2 ++ public/index.php | 2 ++ src/App/src/Action/HomePageAction.php | 2 ++ src/App/src/Action/HomePageFactory.php | 2 ++ src/App/src/Action/PingAction.php | 2 ++ src/ExpressiveInstaller/OptionalPackages.php | 2 ++ src/ExpressiveInstaller/Resources/config/container-aura-di.php | 2 ++ src/ExpressiveInstaller/Resources/config/container-auryn.php | 2 ++ src/ExpressiveInstaller/Resources/config/container-pimple.php | 2 ++ src/ExpressiveInstaller/Resources/config/container-sf-di.php | 2 ++ .../Resources/config/container-zend-servicemanager.php | 2 ++ .../Resources/config/error-handler-whoops.php | 3 ++- .../Resources/config/router-aura-router.php | 2 ++ src/ExpressiveInstaller/Resources/config/router-fast-route.php | 2 ++ .../Resources/config/router-zend-router.php | 2 ++ src/ExpressiveInstaller/Resources/config/routes-full.php | 2 ++ src/ExpressiveInstaller/Resources/config/routes-minimal.php | 2 ++ src/ExpressiveInstaller/Resources/config/templates-plates.php | 2 ++ src/ExpressiveInstaller/Resources/config/templates-twig.php | 2 ++ .../Resources/config/templates-zend-view.php | 2 ++ src/ExpressiveInstaller/Resources/src/ConfigProvider.flat.php | 2 ++ .../Resources/src/ConfigProvider.modular.php | 2 ++ src/ExpressiveInstaller/config.php | 2 ++ test/AppTest/Action/HomePageActionTest.php | 2 ++ test/AppTest/Action/HomePageFactoryTest.php | 2 ++ test/AppTest/Action/PingActionTest.php | 2 ++ test/ExpressiveInstallerTest/AddPackageTest.php | 2 ++ test/ExpressiveInstallerTest/ContainersTest.php | 2 ++ test/ExpressiveInstallerTest/CopyResourceTest.php | 2 ++ test/ExpressiveInstallerTest/ErrorHandlerTest.php | 2 ++ test/ExpressiveInstallerTest/OptionalPackagesTestCase.php | 2 ++ test/ExpressiveInstallerTest/ProcessAnswersTest.php | 2 ++ test/ExpressiveInstallerTest/ProjectSandboxTrait.php | 2 ++ test/ExpressiveInstallerTest/PromptForOptionalPackagesTest.php | 2 ++ test/ExpressiveInstallerTest/RemoveDevDependenciesTest.php | 2 ++ test/ExpressiveInstallerTest/RemoveInstallerTest.php | 2 ++ test/ExpressiveInstallerTest/RemoveLineFromStringTest.php | 2 ++ test/ExpressiveInstallerTest/RequestInstallTypeTest.php | 2 ++ test/ExpressiveInstallerTest/RoutersTest.php | 2 ++ test/ExpressiveInstallerTest/SetupDataAndCacheDirTest.php | 2 ++ test/ExpressiveInstallerTest/SetupDefaultAppTest.php | 2 ++ test/ExpressiveInstallerTest/TemplateRenderersTest.php | 2 ++ test/ExpressiveInstallerTest/UpdateRootPackageTest.php | 2 ++ 50 files changed, 100 insertions(+), 4 deletions(-) diff --git a/bin/clear-config-cache.php b/bin/clear-config-cache.php index 50a14ce..60e92e1 100644 --- a/bin/clear-config-cache.php +++ b/bin/clear-config-cache.php @@ -9,6 +9,8 @@ * @license https://github.com/zendframework/zend-expressive-skeleton/blob/master/LICENSE.md New BSD License */ +declare(strict_types=1); + chdir(__DIR__ . '/../'); require 'vendor/autoload.php'; diff --git a/config/autoload/dependencies.global.php b/config/autoload/dependencies.global.php index 4777cd7..535dafc 100644 --- a/config/autoload/dependencies.global.php +++ b/config/autoload/dependencies.global.php @@ -1,5 +1,7 @@ get('/', App\Action\HomePageAction::class, 'home'); diff --git a/src/ExpressiveInstaller/Resources/config/routes-minimal.php b/src/ExpressiveInstaller/Resources/config/routes-minimal.php index c43fd35..fb4df36 100644 --- a/src/ExpressiveInstaller/Resources/config/routes-minimal.php +++ b/src/ExpressiveInstaller/Resources/config/routes-minimal.php @@ -13,4 +13,6 @@ * $app->route('/contact', App\Action\ContactAction::class, ['GET', 'POST', ...], 'contact'); */ +declare(strict_types=1); + /** @var \Zend\Expressive\Application $app */ diff --git a/src/ExpressiveInstaller/Resources/config/templates-plates.php b/src/ExpressiveInstaller/Resources/config/templates-plates.php index bf15470..30aaa32 100644 --- a/src/ExpressiveInstaller/Resources/config/templates-plates.php +++ b/src/ExpressiveInstaller/Resources/config/templates-plates.php @@ -1,5 +1,7 @@ [ 'filp/whoops' => '^2.1.12', diff --git a/test/AppTest/Action/HomePageActionTest.php b/test/AppTest/Action/HomePageActionTest.php index a8e4384..a40fae9 100644 --- a/test/AppTest/Action/HomePageActionTest.php +++ b/test/AppTest/Action/HomePageActionTest.php @@ -1,5 +1,7 @@