Upgrade to 3.2.5

This commit is contained in:
Bastian Allgeier
2019-09-24 11:00:59 +02:00
parent ff9b5b1861
commit 447a9dd266
234 changed files with 1990 additions and 1224 deletions

View File

@@ -2,9 +2,8 @@
namespace Kirby\Text;
use Closure;
use Kirby\Exception\InvalidArgumentException;
use Kirby\Exception\BadMethodCallException;
use Kirby\Exception\InvalidArgumentException;
/**
* Representation and parse of a single KirbyTag.
@@ -129,7 +128,7 @@ class KirbyTag
{
$callback = static::$types[$this->type]['html'] ?? null;
if (is_a($callback, Closure::class) === true) {
if (is_a($callback, 'Closure') === true) {
return (string)$callback($this);
}

View File

@@ -18,7 +18,7 @@ use Exception;
*/
class KirbyTags
{
protected static $tagClass = KirbyTag::class;
protected static $tagClass = 'Kirby\Text\KirbyTag';
public static function parse(string $text = null, array $data = [], array $options = []): string
{

View File

@@ -20,7 +20,6 @@ use ParsedownExtra;
*/
class Markdown
{
/**
* Array with all configured options
* for the parser
@@ -64,9 +63,9 @@ class Markdown
public function parse(string $text, bool $inline = false): string
{
if ($this->options['extra'] === true) {
$parser = new ParsedownExtra;
$parser = new ParsedownExtra();
} else {
$parser = new Parsedown;
$parser = new Parsedown();
}
$parser->setBreaksEnabled($this->options['breaks']);

View File

@@ -18,7 +18,6 @@ use Michelf\SmartyPantsTypographer;
*/
class SmartyPants
{
/**
* Array with all configured options
* for the parser