From d63f645bd8f1c7ccaf443bc968ccf18fabdc129b Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Thu, 24 Mar 2022 15:46:26 +0100 Subject: [PATCH] Update requirements for PHP 8.1 --- application/views/scripts/error/error.phtml | 2 +- doc/02-Installation.md | 4 ++-- modules/setup/library/Setup/WebWizard.php | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/application/views/scripts/error/error.phtml b/application/views/scripts/error/error.phtml index df7f2f8fa..3c7462f52 100644 --- a/application/views/scripts/error/error.phtml +++ b/application/views/scripts/error/error.phtml @@ -23,7 +23,7 @@ $modReason = []; if (isset($requiredVendor, $requiredProject) && $requiredVendor && $requiredProject) { // TODO: I don't like this, can we define requirements somewhere else? - $coreDeps = ['icinga-php-library' => '>= 0.8', 'icinga-php-thirdparty' => '>= 0.10']; + $coreDeps = ['icinga-php-library' => '>= 0.9', 'icinga-php-thirdparty' => '>= 0.11']; foreach ($coreDeps as $libraryName => $requiredVersion) { if (! $libraries->has($libraryName)) { diff --git a/doc/02-Installation.md b/doc/02-Installation.md index 6c80d1672..c86bbfd19 100644 --- a/doc/02-Installation.md +++ b/doc/02-Installation.md @@ -388,8 +388,8 @@ You will need to install certain dependencies depending on your setup: * [Icinga 2](https://icinga.com/products/icinga-2/) with the IDO database backend (MySQL or PostgreSQL) * A web server, e.g. Apache or Nginx * PHP version >= 7.2 -* [Icinga PHP Library (ipl)](https://github.com/Icinga/icinga-php-library) (>= 0.8) -* [Icinga PHP Thirdparty](https://github.com/Icinga/icinga-php-thirdparty) (>= 0.10) +* [Icinga PHP Library (ipl)](https://github.com/Icinga/icinga-php-library) (>= 0.9) +* [Icinga PHP Thirdparty](https://github.com/Icinga/icinga-php-thirdparty) (>= 0.11) * The following PHP modules must be installed: cURL, json, gettext, fileinfo, intl, dom, OpenSSL and xml * For exports to PDF also the following PHP modules are required: mbstring, GD, Imagick * LDAP PHP library when using Active Directory or LDAP for authentication diff --git a/modules/setup/library/Setup/WebWizard.php b/modules/setup/library/Setup/WebWizard.php index 0b49381ed..bb2cbb90b 100644 --- a/modules/setup/library/Setup/WebWizard.php +++ b/modules/setup/library/Setup/WebWizard.php @@ -586,7 +586,7 @@ class WebWizard extends Wizard implements SetupWizard ))); $set->add(new WebLibraryRequirement(array( - 'condition' => ['icinga-php-library', '>=', '0.8.0'], + 'condition' => ['icinga-php-library', '>=', '0.9.0'], 'alias' => 'Icinga PHP library', 'description' => mt( 'setup', @@ -595,7 +595,7 @@ class WebWizard extends Wizard implements SetupWizard ))); $set->add(new WebLibraryRequirement(array( - 'condition' => ['icinga-php-thirdparty', '>=', '0.10.0'], + 'condition' => ['icinga-php-thirdparty', '>=', '0.11.0'], 'alias' => 'Icinga PHP Thirdparty', 'description' => mt( 'setup',