diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index c852a7d57..135535fbc 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -17,7 +17,7 @@ jobs:
strategy:
matrix:
operating-system: ['ubuntu-latest']
- php-versions: ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1']
+ php-versions: ['7.2', '7.3', '7.4', '8.0', '8.1']
steps:
- name: Checkout Git repository
diff --git a/includes/views/dompdf-status.php b/includes/views/dompdf-status.php
index f0731ef80..181405d4f 100644
--- a/includes/views/dompdf-status.php
+++ b/includes/views/dompdf-status.php
@@ -8,9 +8,9 @@
$server_configs = apply_filters( 'wpo_wcpdf_server_configs' , array(
'PHP version' => array(
- 'required' => __( '7.1+ (7.4 or higher recommended)', 'woocommerce-pdf-invoices-packing-slips' ),
+ 'required' => __( '7.2+ (7.4 or higher recommended)', 'woocommerce-pdf-invoices-packing-slips' ),
'value' => PHP_VERSION,
- 'result' => version_compare( PHP_VERSION, '7.1', '>' ),
+ 'result' => version_compare( PHP_VERSION, '7.2', '>' ),
),
'DOMDocument extension' => array(
'required' => true,
diff --git a/readme.txt b/readme.txt
index e1095328c..33f2df5a0 100644
--- a/readme.txt
+++ b/readme.txt
@@ -4,7 +4,7 @@ Donate link: https://wpovernight.com/downloads/woocommerce-pdf-invoices-packing-
Tags: woocommerce, pdf, invoices, packing slips, print, delivery notes, invoice, packing slip, export, email, bulk, automatic
Requires at least: 3.5
Tested up to: 6.3
-Requires PHP: 7.1
+Requires PHP: 7.2
Stable tag: 3.6.3
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
diff --git a/woocommerce-pdf-invoices-packingslips.php b/woocommerce-pdf-invoices-packingslips.php
index acc1dc3d7..b80e4da5d 100644
--- a/woocommerce-pdf-invoices-packingslips.php
+++ b/woocommerce-pdf-invoices-packingslips.php
@@ -154,11 +154,11 @@ public function load_classes() {
return;
}
- if ( version_compare( PHP_VERSION, '7.2', '<' ) ) {
- add_action( 'admin_notices', array ( $this, 'next_php_version_bump' ) );
- }
+ // if ( version_compare( PHP_VERSION, '7.2', '<' ) ) {
+ // add_action( 'admin_notices', array ( $this, 'next_php_version_bump' ) );
+ // }
- if ( has_filter( 'wpo_wcpdf_pdf_maker' ) === false && version_compare( PHP_VERSION, '7.1', '<' ) ) {
+ if ( has_filter( 'wpo_wcpdf_pdf_maker' ) === false && version_compare( PHP_VERSION, '7.2', '<' ) ) {
add_filter( 'wpo_wcpdf_document_is_allowed', '__return_false', 99999 );
add_action( 'admin_notices', array ( $this, 'required_php_version' ) );
}
@@ -234,7 +234,7 @@ public function woocommerce_hpos_compatible() {
* PHP version requirement notice
*/
public function required_php_version() {
- $error_message = __( 'PDF Invoices & Packing Slips for WooCommerce requires PHP 7.1 (7.4 or higher recommended).', 'woocommerce-pdf-invoices-packing-slips' );
+ $error_message = __( 'PDF Invoices & Packing Slips for WooCommerce requires PHP 7.2 (7.4 or higher recommended).', 'woocommerce-pdf-invoices-packing-slips' );
/* translators: tags */
$php_message = __( 'We strongly recommend to %1$supdate your PHP version%2$s.', 'woocommerce-pdf-invoices-packing-slips' );
/* translators: tags */