From 29fe125b4a18f7107b50e54c69184c4f1777bbf6 Mon Sep 17 00:00:00 2001 From: Alexis Degrugillier Date: Thu, 14 Jan 2021 17:28:45 -0500 Subject: Add constant for PHP requirements (#3369) * Add constant for PHP requirements This new constant is used for PHP version check. This way, we won't forget to modify some part of the code base. * Remove PHP version checks Some checks were obsolete because they were checking unsupported PHP versions. --- lib/Minz/Mailer.php | 6 ------ 1 file changed, 6 deletions(-) (limited to 'lib/Minz') diff --git a/lib/Minz/Mailer.php b/lib/Minz/Mailer.php index 04392982b..b0de183e3 100644 --- a/lib/Minz/Mailer.php +++ b/lib/Minz/Mailer.php @@ -34,14 +34,8 @@ class Minz_Mailer { /** * Constructor. - * - * If PHP version is < 5.5, a warning is logged. */ public function __construct () { - if (version_compare(PHP_VERSION, '5.5') < 0) { - Minz_Log::warning('Minz_Mailer cannot be used with a version of PHP < 5.5.'); - } - $this->view = new Minz_View(); $this->view->_layout(false); $this->view->attributeParams(); -- cgit v1.2.3