Upgrade to 3.8.0

This commit is contained in:
Bastian Allgeier
2022-10-06 10:11:54 +02:00
parent a9ed4e45ca
commit 7d168aae58
332 changed files with 26337 additions and 21977 deletions

View File

@@ -21,23 +21,17 @@ class SmartyPants
/**
* Array with all configured options
* for the parser
*
* @var array
*/
protected $options = [];
protected array $options = [];
/**
* Michelf's parser object
*
* @var SmartyPantsTypographer
*/
protected $parser;
protected SmartyPantsTypographer $parser;
/**
* Returns default values for all
* available parser options
*
* @return array
*/
public function defaults(): array
{
@@ -75,8 +69,6 @@ class SmartyPants
/**
* Creates a new SmartyPants parser
* with the given options
*
* @param array $options
*/
public function __construct(array $options = [])
{
@@ -114,11 +106,8 @@ class SmartyPants
/**
* Parses the given text
*
* @param string|null $text
* @return string
*/
public function parse(string $text = null): string
public function parse(string|null $text = null): string
{
// prepare the text
$text = str_replace('"', '"', $text ?? '');