File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -27,20 +27,20 @@ public function __construct(ConfigRepository $config)
27
27
* @param string|null $name The EntityManager name
28
28
* @return array<string, mixed> The configuration (see config/migrations.php)
29
29
*/
30
- public function getConfig (string $ name = null ): array
30
+ public function getConfig (? string $ name = null ): array
31
31
{
32
32
if ($ name && $ this ->config ->has ('migrations. ' . $ name )) {
33
33
return $ this ->config ->get ('migrations. ' . $ name , []);
34
34
}
35
35
return $ this ->config ->get ('migrations.default ' , []);
36
36
}
37
37
38
- public function getConfigAsRepository (string $ name = null ): Repository
38
+ public function getConfigAsRepository (? string $ name = null ): Repository
39
39
{
40
40
return new Repository ($ this ->getConfig ($ name ));
41
41
}
42
42
43
- public function make (string $ name = null ): ConfigurationArray
43
+ public function make (? string $ name = null ): ConfigurationArray
44
44
{
45
45
$ config = $ this ->getConfigAsRepository ($ name );
46
46
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ public function __construct(
26
26
*
27
27
* @return DependencyFactory
28
28
*/
29
- public function fromEntityManagerName (string $ name = null ): DependencyFactory
29
+ public function fromEntityManagerName (? string $ name = null ): DependencyFactory
30
30
{
31
31
$ configuration = $ this ->factory ->make ($ name );
32
32
return DependencyFactory::fromEntityManager (
Original file line number Diff line number Diff line change @@ -167,7 +167,7 @@ public function getColumnListing(string $table): array
167
167
*
168
168
* @return Table
169
169
*/
170
- protected function build ($ table , Closure $ callback = null ): Table
170
+ protected function build ($ table , ? Closure $ callback = null ): Table
171
171
{
172
172
return new Table ($ table , $ callback );
173
173
}
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ class Table
21
21
* @param Blueprint $table
22
22
* @param Closure|null $callback
23
23
*/
24
- public function __construct (Blueprint $ table , Closure $ callback = null )
24
+ public function __construct (Blueprint $ table , ? Closure $ callback = null )
25
25
{
26
26
$ this ->table = $ table ;
27
27
You can’t perform that action at this time.
0 commit comments