Skip to content

Commit

Permalink
[TASK] Add PHP 8.4 compatibility (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
lolli42 authored Aug 13, 2024
1 parent 7135648 commit 444a228
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/Plugin/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ public function getBaseDir()
* @param IOInterface|null $io
* @return Config
*/
public static function load(Composer $composer, IOInterface $io = null)
public static function load(Composer $composer, ?IOInterface $io = null)
{
static $config;
if ($config === null) {
Expand Down
2 changes: 1 addition & 1 deletion src/Plugin/Core/IncludeFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class IncludeFile
* @param TokenInterface[] $tokens
* @param Filesystem $filesystem
*/
public function __construct(IOInterface $io, Composer $composer, array $tokens, Filesystem $filesystem = null)
public function __construct(IOInterface $io, Composer $composer, array $tokens, ?Filesystem $filesystem = null)
{
$this->io = $io;
$this->composer = $composer;
Expand Down
2 changes: 1 addition & 1 deletion src/Plugin/Core/IncludeFile/AppDirToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class AppDirToken implements TokenInterface
* @param Typo3PluginConfig $typo3PluginConfig
* @param Filesystem $filesystem
*/
public function __construct(IOInterface $io, Typo3PluginConfig $typo3PluginConfig, Filesystem $filesystem = null)
public function __construct(IOInterface $io, Typo3PluginConfig $typo3PluginConfig, ?Filesystem $filesystem = null)
{
$this->io = $io;
$this->typo3PluginConfig = $typo3PluginConfig;
Expand Down
2 changes: 1 addition & 1 deletion src/Plugin/Core/IncludeFile/BaseDirToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class BaseDirToken implements TokenInterface
* @param Typo3PluginConfig $typo3PluginConfig
* @param Filesystem $filesystem
*/
public function __construct(IOInterface $io, Typo3PluginConfig $typo3PluginConfig, Filesystem $filesystem = null)
public function __construct(IOInterface $io, Typo3PluginConfig $typo3PluginConfig, ?Filesystem $filesystem = null)
{
$this->io = $io;
$this->typo3PluginConfig = $typo3PluginConfig;
Expand Down
2 changes: 1 addition & 1 deletion src/Plugin/Core/IncludeFile/RootDirToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class RootDirToken implements TokenInterface
* @param Typo3PluginConfig $typo3PluginConfig
* @param Filesystem $filesystem
*/
public function __construct(IOInterface $io, Typo3PluginConfig $typo3PluginConfig, Filesystem $filesystem = null)
public function __construct(IOInterface $io, Typo3PluginConfig $typo3PluginConfig, ?Filesystem $filesystem = null)
{
$this->io = $io;
$this->typo3PluginConfig = $typo3PluginConfig;
Expand Down
2 changes: 1 addition & 1 deletion src/Plugin/Core/IncludeFile/WebDirToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class WebDirToken implements TokenInterface
* @param Typo3PluginConfig $typo3PluginConfig
* @param Filesystem $filesystem
*/
public function __construct(IOInterface $io, Typo3PluginConfig $typo3PluginConfig, Filesystem $filesystem = null)
public function __construct(IOInterface $io, Typo3PluginConfig $typo3PluginConfig, ?Filesystem $filesystem = null)
{
$this->io = $io;
$this->typo3PluginConfig = $typo3PluginConfig;
Expand Down
4 changes: 2 additions & 2 deletions src/Plugin/PluginImplementation.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ class PluginImplementation
*/
public function __construct(
Event $event,
ScriptDispatcher $scriptDispatcher = null,
IncludeFile $includeFile = null
?ScriptDispatcher $scriptDispatcher = null,
?IncludeFile $includeFile = null
) {
$io = $event->getIO();
$this->composer = $event->getComposer();
Expand Down

0 comments on commit 444a228

Please sign in to comment.