Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .github/workflows/unit-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@ jobs:
strategy:
matrix:
php:
- '5.3'
- '5.4'
- '5.5'
- '5.6'
- '7.0'
- '7.1'
- '7.2'
- '7.3'
Expand Down
4 changes: 2 additions & 2 deletions Parsedown.php
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@ protected function blockRule($Line)
#
# Setext

protected function blockSetextHeader($Line, array $Block = null)
protected function blockSetextHeader($Line, ?array $Block = null)
{
if ( ! isset($Block) or isset($Block['type']) or isset($Block['interrupted']))
{
Expand Down Expand Up @@ -850,7 +850,7 @@ protected function blockReference($Line)
#
# Table

protected function blockTable($Line, array $Block = null)
protected function blockTable($Line, ?array $Block = null)
{
if ( ! isset($Block) or isset($Block['type']) or isset($Block['interrupted']))
{
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
}
],
"require": {
"php": ">=5.3.0",
"php": ">=7.1",
"ext-mbstring": "*"
},
"require-dev": {
Expand Down
2 changes: 1 addition & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="vendor/autoload.php" colors="true">
<testsuites>
<testsuite>
<testsuite name="unit">
<file>test/ParsedownTest.php</file>
</testsuite>
</testsuites>
Expand Down
2 changes: 1 addition & 1 deletion test/CommonMarkTestStrict.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class CommonMarkTestStrict extends TestCase

protected $parsedown;

protected function setUp()
protected function setUp(): void
{
$this->parsedown = new TestParsedown();
$this->parsedown->setUrlsLinked(false);
Expand Down
2 changes: 1 addition & 1 deletion test/CommonMarkTestWeak.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class CommonMarkTestWeak extends CommonMarkTestStrict
{
protected $textLevelElementRegex;

protected function setUp()
protected function setUp(): void
{
parent::setUp();

Expand Down