Merge pull request #358 from tacman/dev-2.0

Bump to php7.4
This commit is contained in:
Michel Fortin 2021-11-06 21:52:07 -04:00 committed by GitHub
commit 541f463059
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 21 deletions

View file

@ -1,7 +1,7 @@
build: build:
environment: environment:
php: php:
version: '7.0.20' version: '7.4'
nodes: nodes:
analysis: analysis:
project_setup: project_setup:

View file

@ -4,24 +4,10 @@ matrix:
include: include:
- php: hhvm-3.18 - php: hhvm-3.18
dist: trusty 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 - php: 7.4
dist: bionic dist: bionic
- php: 8.0
dist: bionic
install: install:
- composer install --prefer-dist - composer install --prefer-dist

View file

@ -18,7 +18,7 @@ class Markdown implements MarkdownInterface {
* Define the package version * Define the package version
* @var string * @var string
*/ */
const MARKDOWNLIB_VERSION = "1.9.0"; const MARKDOWNLIB_VERSION = "2.0";
/** /**
* Simple function interface - Initialize the parser and return the result * 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 * Change to `true` to enable line breaks on \n without two trailling spaces
* @var boolean * @var boolean
*/ */
public $hard_wrap = false; public bool $hard_wrap = false;
/** /**
* Predefined URLs and titles for reference links and images. * Predefined URLs and titles for reference links and images.

View file

@ -18,12 +18,12 @@
} }
], ],
"require": { "require": {
"php": ">=5.3.0" "php": ">=7.4"
}, },
"autoload": { "autoload": {
"psr-4": { "Michelf\\": "Michelf/" } "psr-4": { "Michelf\\": "Michelf/" }
}, },
"require-dev": { "require-dev": {
"phpunit/phpunit": ">=4.3 <5.8" "phpunit/phpunit": ">= 9.5"
} }
} }