Test on PHP 5.5 and 5.6

Issue on pre PHP 7 may be to do with method name and not call syntax as
suspected
This commit is contained in:
Aidan Woods 2019-01-20 14:56:05 +00:00
parent f8003dcded
commit a9aa7e7aae
No known key found for this signature in database
GPG Key ID: 9A6A8EFAA512BBB9
6 changed files with 7 additions and 5 deletions

View File

@ -9,6 +9,8 @@ stages:
- Test CommonMark (weak) - Test CommonMark (weak)
php: php:
- 5.5
- 5.6
- 7.0 - 7.0
- 7.1 - 7.1
- 7.2 - 7.2

View File

@ -5,5 +5,5 @@ namespace Erusev\Parsedown;
interface Configurable interface Configurable
{ {
/** @return static */ /** @return static */
public static function default(); public static function initial();
} }

View File

@ -21,7 +21,7 @@ final class DefinitionBook implements Configurable
} }
/** @return self */ /** @return self */
public static function default() public static function initial()
{ {
return new self; return new self;
} }

View File

@ -22,7 +22,7 @@ final class SafeMode implements Configurable
return $this->enabled; return $this->enabled;
} }
public static function default(): self public static function initial(): self
{ {
return new self(false); return new self(false);
} }

View File

@ -22,7 +22,7 @@ final class StrictMode implements Configurable
return $this->enabled; return $this->enabled;
} }
public static function default(): self public static function initial(): self
{ {
return new self(false); return new self(false);
} }

View File

@ -67,7 +67,7 @@ final class State
{ {
return (isset($this->state[$configurableClass]) return (isset($this->state[$configurableClass])
? $this->state[$configurableClass] ? $this->state[$configurableClass]
: $configurableClass::default() : $configurableClass::initial()
); );
} }