Upgrade to 3.8.0
This commit is contained in:
@@ -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 ?? '');
|
||||
|
||||
Reference in New Issue
Block a user