Skip to content

Commit 769b4f4

Browse files
committed
Initialize properties
1 parent 0144273 commit 769b4f4

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

src/Module.php

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ abstract class Module extends ServiceProvider implements ModuleContract
2626
'api',
2727
];
2828

29-
protected array $policies;
29+
protected array $policies = [];
3030

31-
protected array $middleware;
31+
protected array $middleware = [];
3232

33-
protected array $listen;
33+
protected array $listen = [];
3434

35-
protected array $subscribe;
35+
protected array $subscribe = [];
3636

3737
protected string $modulePath;
3838

@@ -85,7 +85,6 @@ protected function loadCommandSchedule(): void
8585

8686
/**
8787
* @return void
88-
* @throws ReflectionException
8988
*/
9089
protected function loadMigrations(): void
9190
{
@@ -98,7 +97,6 @@ protected function loadMigrations(): void
9897

9998
/**
10099
* @return void
101-
* @throws ReflectionException
102100
*/
103101
protected function loadViews(): void
104102
{
@@ -111,7 +109,6 @@ protected function loadViews(): void
111109

112110
/**
113111
* @return void
114-
* @throws ReflectionException
115112
*/
116113
protected function loadTranslations(): void
117114
{
@@ -124,7 +121,6 @@ protected function loadTranslations(): void
124121

125122
/**
126123
* @return void
127-
* @throws ReflectionException
128124
*/
129125
protected function loadConfigs(): void
130126
{

src/Support/ModuleRepository.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
*/
1313
class ModuleRepository implements ModuleRepositoryContract
1414
{
15-
/** @var array */
1615
protected array $modules = [];
1716

1817
/**

0 commit comments

Comments
 (0)