Skip to content

Commit 444a228

Browse files
authored
[TASK] Add PHP 8.4 compatibility (#149)
1 parent 7135648 commit 444a228

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

src/Plugin/Config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ public function getBaseDir()
192192
* @param IOInterface|null $io
193193
* @return Config
194194
*/
195-
public static function load(Composer $composer, IOInterface $io = null)
195+
public static function load(Composer $composer, ?IOInterface $io = null)
196196
{
197197
static $config;
198198
if ($config === null) {

src/Plugin/Core/IncludeFile.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class IncludeFile
5151
* @param TokenInterface[] $tokens
5252
* @param Filesystem $filesystem
5353
*/
54-
public function __construct(IOInterface $io, Composer $composer, array $tokens, Filesystem $filesystem = null)
54+
public function __construct(IOInterface $io, Composer $composer, array $tokens, ?Filesystem $filesystem = null)
5555
{
5656
$this->io = $io;
5757
$this->composer = $composer;

src/Plugin/Core/IncludeFile/AppDirToken.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class AppDirToken implements TokenInterface
4848
* @param Typo3PluginConfig $typo3PluginConfig
4949
* @param Filesystem $filesystem
5050
*/
51-
public function __construct(IOInterface $io, Typo3PluginConfig $typo3PluginConfig, Filesystem $filesystem = null)
51+
public function __construct(IOInterface $io, Typo3PluginConfig $typo3PluginConfig, ?Filesystem $filesystem = null)
5252
{
5353
$this->io = $io;
5454
$this->typo3PluginConfig = $typo3PluginConfig;

src/Plugin/Core/IncludeFile/BaseDirToken.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class BaseDirToken implements TokenInterface
4848
* @param Typo3PluginConfig $typo3PluginConfig
4949
* @param Filesystem $filesystem
5050
*/
51-
public function __construct(IOInterface $io, Typo3PluginConfig $typo3PluginConfig, Filesystem $filesystem = null)
51+
public function __construct(IOInterface $io, Typo3PluginConfig $typo3PluginConfig, ?Filesystem $filesystem = null)
5252
{
5353
$this->io = $io;
5454
$this->typo3PluginConfig = $typo3PluginConfig;

src/Plugin/Core/IncludeFile/RootDirToken.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class RootDirToken implements TokenInterface
4848
* @param Typo3PluginConfig $typo3PluginConfig
4949
* @param Filesystem $filesystem
5050
*/
51-
public function __construct(IOInterface $io, Typo3PluginConfig $typo3PluginConfig, Filesystem $filesystem = null)
51+
public function __construct(IOInterface $io, Typo3PluginConfig $typo3PluginConfig, ?Filesystem $filesystem = null)
5252
{
5353
$this->io = $io;
5454
$this->typo3PluginConfig = $typo3PluginConfig;

src/Plugin/Core/IncludeFile/WebDirToken.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class WebDirToken implements TokenInterface
4848
* @param Typo3PluginConfig $typo3PluginConfig
4949
* @param Filesystem $filesystem
5050
*/
51-
public function __construct(IOInterface $io, Typo3PluginConfig $typo3PluginConfig, Filesystem $filesystem = null)
51+
public function __construct(IOInterface $io, Typo3PluginConfig $typo3PluginConfig, ?Filesystem $filesystem = null)
5252
{
5353
$this->io = $io;
5454
$this->typo3PluginConfig = $typo3PluginConfig;

src/Plugin/PluginImplementation.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ class PluginImplementation
5555
*/
5656
public function __construct(
5757
Event $event,
58-
ScriptDispatcher $scriptDispatcher = null,
59-
IncludeFile $includeFile = null
58+
?ScriptDispatcher $scriptDispatcher = null,
59+
?IncludeFile $includeFile = null
6060
) {
6161
$io = $event->getIO();
6262
$this->composer = $event->getComposer();

0 commit comments

Comments
 (0)