From 70f22c7327a90f7a7501efc3dd98e1e139da01fa Mon Sep 17 00:00:00 2001 From: Miroslav Svitok Date: Thu, 25 Aug 2022 08:28:07 +0000 Subject: [PATCH] Upgrade to PHP 8.0, upgrade to Deployer 7 - new deploy strategy, project is copied to application servers instead of using NFS remp/crm#2519 --- composer.json | 2 +- src/DI/MobiletechModuleExtension.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index 8c0d3e8..e3d1539 100644 --- a/composer.json +++ b/composer.json @@ -5,7 +5,7 @@ "homepage": "https://remp2020.com", "license": "MIT", "require": { - "php": "^7.4" + "php": "^8.0" }, "minimum-stability": "dev", "autoload": { diff --git a/src/DI/MobiletechModuleExtension.php b/src/DI/MobiletechModuleExtension.php index 4422242..b4bc31b 100644 --- a/src/DI/MobiletechModuleExtension.php +++ b/src/DI/MobiletechModuleExtension.php @@ -2,10 +2,10 @@ namespace Crm\MobiletechModule\DI; -use Kdyby\Translation\DI\ITranslationProvider; +use Contributte\Translation\DI\TranslationProviderInterface; use Nette\DI\CompilerExtension; -final class MobiletechModuleExtension extends CompilerExtension implements ITranslationProvider +final class MobiletechModuleExtension extends CompilerExtension implements TranslationProviderInterface { public function loadConfiguration() { @@ -19,7 +19,7 @@ public function loadConfiguration() * Return array of directories, that contain resources for translator. * @return string[] */ - public function getTranslationResources() + public function getTranslationResources(): array { return [__DIR__ . '/../lang/']; }