From 75b155195654bb91e2901ed27ab55df829157b0d Mon Sep 17 00:00:00 2001 From: Graham Campbell Date: Sat, 28 Dec 2019 14:38:00 +0000 Subject: [PATCH 1/2] Fixed failing travis builds --- .travis.yml | 42 +++++++++++++++++++++++------------------- 1 file changed, 23 insertions(+), 19 deletions(-) diff --git a/.travis.yml b/.travis.yml index d467147..440045b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,25 +1,29 @@ language: php -sudo: false +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 -cache: - directories: - - $HOME/.composer/ - -# Run tests against all these PHP versions -# TODO: When it becomes possible in TravisCI, switch 7.4snapshot to plain 7.4 -php: - - 5.4 - - 5.5 - - 5.6 - - 7.0 - - 7.1 - - 7.2 - - 7.3 - - 7.4snapshot - - hhvm - -before_script: +install: - composer install --prefer-dist script: From d62eb48b7648c72e4a00992d541d43b841c0b000 Mon Sep 17 00:00:00 2001 From: Graham Campbell Date: Sat, 28 Dec 2019 14:41:51 +0000 Subject: [PATCH 2/2] Use long array syntax --- test/helpers/MarkdownTestHelper.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/helpers/MarkdownTestHelper.php b/test/helpers/MarkdownTestHelper.php index 545dabd..ffca0c9 100644 --- a/test/helpers/MarkdownTestHelper.php +++ b/test/helpers/MarkdownTestHelper.php @@ -20,7 +20,7 @@ class MarkdownTestHelper RecursiveRegexIterator::GET_MATCH ); - $dataValues = []; + $dataValues = array(); /** @var SplFileInfo $inputFile */ foreach ($regexIterator as $inputFiles) { @@ -31,7 +31,7 @@ class MarkdownTestHelper $expectedHtmlPath = substr($inputMarkdownPath, 0, -4) . 'html'; $xhtml = false; } - $dataValues[] = [$inputMarkdownPath, $expectedHtmlPath, $xhtml]; + $dataValues[] = array($inputMarkdownPath, $expectedHtmlPath, $xhtml); } }