From f040749ea56e965bd3187210920a8272156aa95f Mon Sep 17 00:00:00 2001 From: Tac Tacelosky Date: Fri, 5 Nov 2021 13:04:16 -0400 Subject: [PATCH 1/5] bump php version and phpunit --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 0935075..a04df60 100644 --- a/composer.json +++ b/composer.json @@ -18,12 +18,12 @@ } ], "require": { - "php": ">=5.3.0" + "php": ">=7.4" }, "autoload": { "psr-4": { "Michelf\\": "Michelf/" } }, "require-dev": { - "phpunit/phpunit": ">=4.3 <5.8" + "phpunit/phpunit": "^9.5" } } From b19407df03f3b3bfe76ddac1c0808c9b0896287c Mon Sep 17 00:00:00 2001 From: Tac Tacelosky Date: Fri, 5 Nov 2021 13:05:44 -0400 Subject: [PATCH 2/5] allow php7.2+ --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index a04df60..361818f 100644 --- a/composer.json +++ b/composer.json @@ -18,7 +18,7 @@ } ], "require": { - "php": ">=7.4" + "php": ">=7.2" }, "autoload": { "psr-4": { "Michelf\\": "Michelf/" } From 169de84485ff48e7beac149d78e59af06aec3b3b Mon Sep 17 00:00:00 2001 From: Tac Tacelosky Date: Fri, 5 Nov 2021 13:09:26 -0400 Subject: [PATCH 3/5] allow php7.3+ --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 361818f..f02526d 100644 --- a/composer.json +++ b/composer.json @@ -18,7 +18,7 @@ } ], "require": { - "php": ">=7.2" + "php": ">=7.3" }, "autoload": { "psr-4": { "Michelf\\": "Michelf/" } From 874d1c07561c3015212fc17d6c141fe8723326f2 Mon Sep 17 00:00:00 2001 From: Tac Tacelosky Date: Sat, 6 Nov 2021 11:38:35 -0400 Subject: [PATCH 4/5] bump minimum to php 7.4 --- .travis.yml | 18 ++---------------- Michelf/Markdown.php | 4 ++-- composer.json | 4 ++-- 3 files changed, 6 insertions(+), 20 deletions(-) diff --git a/.travis.yml b/.travis.yml index 440045b..5a2a16a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,24 +4,10 @@ matrix: include: - php: hhvm-3.18 dist: trusty - - php: 5.3 - dist: precise - - php: 5.4 - dist: trusty - - php: 5.5 - dist: trusty - - php: 5.6 - dist: xenial - - php: 7.0 - dist: xenial - - php: 7.1 - dist: bionic - - php: 7.2 - dist: bionic - - php: 7.3 - dist: bionic - php: 7.4 dist: bionic + - php: 8.0 + dist: bionic install: - composer install --prefer-dist diff --git a/Michelf/Markdown.php b/Michelf/Markdown.php index 9cf4c77..61778ba 100644 --- a/Michelf/Markdown.php +++ b/Michelf/Markdown.php @@ -18,7 +18,7 @@ class Markdown implements MarkdownInterface { * Define the package version * @var string */ - const MARKDOWNLIB_VERSION = "1.9.0"; + const MARKDOWNLIB_VERSION = "2.0"; /** * Simple function interface - Initialize the parser and return the result @@ -74,7 +74,7 @@ class Markdown implements MarkdownInterface { * Change to `true` to enable line breaks on \n without two trailling spaces * @var boolean */ - public $hard_wrap = false; + public bool $hard_wrap = false; /** * Predefined URLs and titles for reference links and images. diff --git a/composer.json b/composer.json index f02526d..9990ce1 100644 --- a/composer.json +++ b/composer.json @@ -18,12 +18,12 @@ } ], "require": { - "php": ">=7.3" + "php": ">=7.4" }, "autoload": { "psr-4": { "Michelf\\": "Michelf/" } }, "require-dev": { - "phpunit/phpunit": "^9.5" + "phpunit/phpunit": ">= 9.5" } } From d6498ec366ffe84e8b62fe0ee7ad570246fa45dc Mon Sep 17 00:00:00 2001 From: Tac Tacelosky Date: Sat, 6 Nov 2021 21:16:00 -0400 Subject: [PATCH 5/5] bump to php 7.4 --- .scrutinizer.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.scrutinizer.yml b/.scrutinizer.yml index b4f5dfb..7542096 100644 --- a/.scrutinizer.yml +++ b/.scrutinizer.yml @@ -1,7 +1,7 @@ build: environment: php: - version: '7.0.20' + version: '7.4' nodes: analysis: project_setup: