Skip to content

Commit

Permalink
Update requires php version to 8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mrgeneralgoo committed Jan 24, 2024
1 parent a0d8700 commit fcc9efa
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:

strategy:
matrix:
php: [7.4, 8.0, 8.1, 8.2, 8.3]
php: [8.0, 8.1, 8.2, 8.3]

steps:
- name: Checkout Repository
Expand Down Expand Up @@ -52,7 +52,7 @@ jobs:
- name: Create Release
uses: ncipollo/release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.AUTO_RELEASE_TOKEN }}
tag: ${{ github.ref }}
artifacts: "MarkdownParse.zip"
body: |
Expand Down
4 changes: 2 additions & 2 deletions MarkdownParse.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ private function __construct()
* Get the singleton instance of MarkdownParse
*
* @return MarkdownParse The singleton instance
* @throws \RuntimeException If PHP version is less than 7.4.0
* @throws \RuntimeException If PHP version is less than 8.0
*/
public static function getInstance(): MarkdownParse
{
if (self::$instance === null) {
$requiredVersion = '7.4.0';
$requiredVersion = '8.0';
if (version_compare(phpversion(), $requiredVersion, '<')) {
throw new \RuntimeException('MarkdownParse requires PHP ' . $requiredVersion . ' or later.');
}
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"require": {
"php": "^8.0",
"league/commonmark": "^2.4",
"wnx/commonmark-mark-extension": "^1.2",
"simonvomeyser/commonmark-ext-lazy-image": "^2.0",
Expand Down
6 changes: 4 additions & 2 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fcc9efa

Please sign in to comment.