Skip to content

Commit

Permalink
fix: use php di container return type
Browse files Browse the repository at this point in the history
  • Loading branch information
yusuftaufiq committed Jun 2, 2022
1 parent be756e3 commit 9e37450
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Haemanthus\CodeIgniter3IdeHelper\Providers;

use DI\Container;
use DI\ContainerBuilder;
use Haemanthus\CodeIgniter3IdeHelper\Application;
use Haemanthus\CodeIgniter3IdeHelper\Contracts\FileWriter as FileWriterContract;
Expand All @@ -20,7 +21,7 @@
*/
class AppServiceProvider
{
protected static ?ContainerInterface $container = null;
protected static ?Container $container = null;

/**
* Undocumented function
Expand All @@ -42,7 +43,7 @@ protected static function definitions(): array
];
}

public static function container(): ContainerInterface
public static function container(): Container
{
if (static::$container === null) {
$builder = new ContainerBuilder();
Expand Down

0 comments on commit 9e37450

Please sign in to comment.