Skip to content

Commit 8993f68

Browse files
committed
Update all dependencies
1 parent f3533e7 commit 8993f68

File tree

4 files changed

+11
-12
lines changed

4 files changed

+11
-12
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ composer.lock
66
phpunit.xml
77
.env
88
.idea
9-
.phpunit.result.cache
9+
.phpunit.result.cache
10+
.DS_Store

composer.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@
1212
"license": "MIT",
1313
"authors": [],
1414
"require": {
15-
"php": "^7.4|^8.0",
16-
"illuminate/console": "^8.0",
17-
"illuminate/database": "^8.0",
18-
"illuminate/support": "^8.0",
19-
"illuminate/routing": "^8.0"
15+
"php": "^8.0",
16+
"illuminate/console": "^9.0",
17+
"illuminate/database": "^9.0",
18+
"illuminate/support": "^9.0",
19+
"illuminate/routing": "^9.0"
2020
},
2121
"require-dev": {
2222
"phpunit/phpunit": "^9.5",
2323
"mockery/mockery": "^1.4",
24-
"orchestra/testbench": "^6.0"
24+
"orchestra/testbench": "^7.0"
2525
},
2626
"autoload": {
2727
"psr-4": {

src/ModulesServiceProvider.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ class ModulesServiceProvider extends ServiceProvider
1717
*/
1818
public function register(): void
1919
{
20-
$this->app->singleton(ModuleRepositoryContract::class, static function () {
21-
return new ModuleRepository();
22-
});
20+
$this->app->singleton(ModuleRepositoryContract::class, ModuleRepository::class);
2321
}
2422

2523
/**

tests/Support/ModuleRepositoryTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44

55
use Zonneplan\ModuleLoader\Support\Contracts\ModuleRepositoryContract;
66
use Zonneplan\ModuleLoader\Support\Exceptions\ModuleNotFoundException;
7+
use Zonneplan\ModuleLoader\Support\ModuleRepository;
78
use Zonneplan\ModuleLoader\Test\TestCase;
89

910
class ModuleRepositoryTest extends TestCase
1011
{
11-
/* @var ModuleRepository */
12-
protected $moduleRepository;
12+
protected ModuleRepository $moduleRepository;
1313

1414
public function setUp(): void
1515
{

0 commit comments

Comments
 (0)