Skip to content

Commit

Permalink
Fix psalm
Browse files Browse the repository at this point in the history
Signed-off-by: Abdul Malik Ikhsan <samsonasik@gmail.com>
  • Loading branch information
samsonasik committed Jan 9, 2023
1 parent 9a8b7f8 commit 1848237
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

class Plugin implements PluginInterface, EventSubscriberInterface
{
private ?Composer $composer = null;
private Composer $composer;

/**
* Array of installers to run following a dump-autoload operation.
Expand All @@ -27,7 +27,7 @@ class Plugin implements PluginInterface, EventSubscriberInterface
*/
private array $installers = [];

private ?IOInterface $io = null;
private IOInterface $io ;

/**
* Provide composer event listeners.
Expand Down
4 changes: 2 additions & 2 deletions test/AssetInstallerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ class AssetInstallerTest extends TestCase
];

/** @var PackageInterface|ObjectProphecy */
private ?ObjectProphecy $package = null;
private $package;

/** @var IOInterface|ObjectProphecy */
private ?ObjectProphecy $io = null;
private $io;

private vfsStreamDirectory $filesystem;

Expand Down
4 changes: 2 additions & 2 deletions test/AssetUninstallerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ class AssetUninstallerTest extends TestCase
private vfsStreamDirectory $filesystem;

/** @var PackageInterface|ObjectProphecy */
private ?ObjectProphecy $package = null;
private $package;

/** @var IOInterface|ObjectProphecy */
private ?ObjectProphecy $io = null;
private $io;

public function setUp(): void
{
Expand Down
4 changes: 2 additions & 2 deletions test/PluginTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ class PluginTest extends TestCase
private vfsStreamDirectory $filesystem;

/** @var Composer|ObjectProphecy */
private ObjectProphecy $composer;
private $composer;

/** @var IOInterface|ObjectProphecy */
private ObjectProphecy $io;
private $io;

public function setUp(): void
{
Expand Down

0 comments on commit 1848237

Please sign in to comment.