Skip to content

Commit

Permalink
ISSUE-337: use api php8.1 version
Browse files Browse the repository at this point in the history
  • Loading branch information
tatevikg1 committed Dec 14, 2024
1 parent edbdc4f commit 53f8c9b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ jobs:
run: |
cd $GITHUB_WORKSPACE
cd public_html/lists
wget https://github.com/phpList/base-distribution/archive/refs/heads/phplist3.zip
unzip phplist3.zip
rm phplist3.zip
mv base-distribution-phplist3 base
wget https://github.com/phpList/base-distribution/archive/refs/heads/main.zip
unzip main.zip
rm main.zip
mv base-distribution-main base
cd base
composer update --no-dev
Expand Down
2 changes: 1 addition & 1 deletion public_html/lists/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use PhpList\Core\Core\Bootstrap;

if (version_compare(phpversion(), '7.0.0', '<')) {
if (version_compare(phpversion(), '8.1', '<')) {
die('API is not supported on this PHP version.');
}
require_once __DIR__ . '/base/vendor/autoload.php';
Expand Down

0 comments on commit 53f8c9b

Please sign in to comment.