Skip to content

Commit d92a78d

Browse files
committed
temp PHP 8.4 fixes
1 parent dc33833 commit d92a78d

File tree

9 files changed

+12
-11
lines changed

9 files changed

+12
-11
lines changed

composer.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/composer/installed.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
'name' => 'getgrav/shortcode-core',
44
'pretty_version' => 'dev-develop',
55
'version' => 'dev-develop',
6-
'reference' => 'be1b12ecc2b9807da0a5415ef7432a6ae2ac9cee',
6+
'reference' => 'dc33833d77d2acf285384fcacf9d0e2e2c6787a8',
77
'type' => 'grav-plugin',
88
'install_path' => __DIR__ . '/../../',
99
'aliases' => array(),
@@ -13,7 +13,7 @@
1313
'getgrav/shortcode-core' => array(
1414
'pretty_version' => 'dev-develop',
1515
'version' => 'dev-develop',
16-
'reference' => 'be1b12ecc2b9807da0a5415ef7432a6ae2ac9cee',
16+
'reference' => 'dc33833d77d2acf285384fcacf9d0e2e2c6787a8',
1717
'type' => 'grav-plugin',
1818
'install_path' => __DIR__ . '/../../',
1919
'aliases' => array(),

vendor/thunderer/shortcode/src/Event/FilterShortcodesEvent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class FilterShortcodesEvent
1919
private $shortcodes = array();
2020

2121
/** @param ParsedShortcodeInterface[] $shortcodes */
22-
public function __construct(array $shortcodes, ProcessedShortcode $parent = null)
22+
public function __construct(array $shortcodes, ?ProcessedShortcode $parent = null)
2323
{
2424
$this->parent = $parent;
2525
$this->setShortcodes($shortcodes);

vendor/thunderer/shortcode/src/Event/ReplaceShortcodesEvent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class ReplaceShortcodesEvent
2626
* @param string $text
2727
* @param ReplacedShortcode[] $replacements
2828
*/
29-
public function __construct($text, array $replacements, ShortcodeInterface $shortcode = null)
29+
public function __construct($text, array $replacements, ?ShortcodeInterface $shortcode = null)
3030
{
3131
$this->shortcode = $shortcode;
3232
$this->text = $text;

vendor/thunderer/shortcode/src/Parser/RegexParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ final class RegexParser implements ParserInterface
2121
/** @var string */
2222
private $parametersRegex;
2323

24-
public function __construct(SyntaxInterface $syntax = null)
24+
public function __construct(?SyntaxInterface $syntax = null)
2525
{
2626
$this->syntax = $syntax ?: new Syntax();
2727
$this->shortcodeRegex = RegexBuilderUtility::buildShortcodeRegex($this->syntax);

vendor/thunderer/shortcode/src/Parser/RegularParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ final class RegularParser implements ParserInterface
3535
const TOKEN_STRING = 6;
3636
const TOKEN_WS = 7;
3737

38-
public function __construct(SyntaxInterface $syntax = null)
38+
public function __construct(?SyntaxInterface $syntax = null)
3939
{
4040
$this->lexerRegex = $this->prepareLexer($syntax ?: new CommonSyntax());
4141
$this->nameRegex = '~^'.RegexBuilderUtility::buildNameRegex().'$~us';

vendor/thunderer/shortcode/src/Parser/WordpressParser.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
use Thunder\Shortcode\HandlerContainer\HandlerContainer;
55
use Thunder\Shortcode\Shortcode\ParsedShortcode;
66
use Thunder\Shortcode\Shortcode\Shortcode;
7+
use Thunder\Shortcode\Syntax\SyntaxInterface;
78
use Thunder\Shortcode\Utility\RegexBuilderUtility;
89

910
/**
@@ -34,7 +35,7 @@ final class WordpressParser implements ParserInterface
3435
/** @var string[] */
3536
private $names = array();
3637

37-
public function __construct()
38+
public function __construct(?SyntaxInterface $syntax = null)
3839
{
3940
}
4041

vendor/thunderer/shortcode/src/Processor/Processor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ private function dispatchEvent($name, $event)
8989
*
9090
* @return string
9191
*/
92-
private function processIteration($text, ProcessorContext $context, ProcessedShortcode $parent = null)
92+
private function processIteration($text, ProcessorContext $context, ?ProcessedShortcode $parent = null)
9393
{
9494
if (null !== $this->recursionDepth && $context->recursionLevel > $this->recursionDepth) {
9595
return $text;

vendor/thunderer/shortcode/src/Serializer/TextSerializer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ final class TextSerializer implements SerializerInterface
1515
/** @var SyntaxInterface */
1616
private $syntax;
1717

18-
public function __construct(SyntaxInterface $syntax = null)
18+
public function __construct(?SyntaxInterface $syntax = null)
1919
{
2020
$this->syntax = $syntax ?: new Syntax();
2121
}

0 commit comments

Comments
 (0)