mirror of
https://github.com/erusev/parsedown.git
synced 2024-09-20 03:51:29 +02:00
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:
parent
f8003dcded
commit
a9aa7e7aae
@ -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
|
||||||
|
@ -5,5 +5,5 @@ namespace Erusev\Parsedown;
|
|||||||
interface Configurable
|
interface Configurable
|
||||||
{
|
{
|
||||||
/** @return static */
|
/** @return static */
|
||||||
public static function default();
|
public static function initial();
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user