Skip to content
Snippets Groups Projects
Verified Commit d19e187d authored by Bartek Jaskulski's avatar Bartek Jaskulski
Browse files

feat: raise required php version to 7.4

parent 108f1fa6
No related branches found
No related tags found
2 merge requests!5feat: remove compilation command,!4feat: remove compilation command
......@@ -34,9 +34,9 @@
]
},
"require": {
"php": ">=7.2 | ^8",
"php": ">=7.4 | ^8",
"php-di/php-di": "^6 || ^7",
"psr/container": "~1.0.0 || ^2"
"psr/container": "^1 || ^2"
},
"require-dev": {
"brain/monkey": "^2.6",
......@@ -61,5 +61,11 @@
"phpstan/extension-installer": true,
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"repositories": {
"wpdesk": {
"type": "composer",
"url": "https://gitlab.wpdesk.dev/api/v4/group/wpdesk/-/packages/composer/"
}
}
}
<?php
if ( ! ( PHP_VERSION_ID >= 70200 ) ) {
if ( ! ( PHP_VERSION_ID >= 70400 ) ) {
add_action(
'admin_notices',
function () {
printf(
'<div class="notice notice-error"><p>%s</p></div>',
__( 'The plugin cannot run on PHP versions older than 7.2. Please, contact your host and ask them to upgrade.', 'wp-init' )
__( 'The plugin cannot run on PHP versions older than 7.4. Please, contact your host and ask them to upgrade.', 'wp-init' )
);
}
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment