Skip to content

Commit 1c8d628

Browse files
committed
Declare strict types
Also minor CS fixes.
1 parent ab6d0f3 commit 1c8d628

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

‎src/Exception/ModuleExceptionInterface.php‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace Dhii\Modular\Module\Exception;
46

57
use Dhii\Modular\Module\ModuleAwareInterface;

‎src/ModuleAwareInterface.php‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace Dhii\Modular\Module;
46

57
/**
@@ -16,5 +18,5 @@ interface ModuleAwareInterface
1618
*
1719
* @return ModuleInterface|null The module, if applicable; otherwise, null.
1820
*/
19-
public function getModule();
21+
public function getModule(): ?ModuleInterface;
2022
}

‎src/ModuleInterface.php‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace Dhii\Modular\Module;
46

57
use Dhii\Modular\Module\Exception\ModuleExceptionInterface;
@@ -31,7 +33,7 @@ interface ModuleInterface
3133
*
3234
* @throws ModuleExceptionInterface If module setup failed and/or a service provider instance could not be returned.
3335
*/
34-
public function setup() : ServiceProviderInterface;
36+
public function setup(): ServiceProviderInterface;
3537

3638
/**
3739
* Runs the module.

0 commit comments

Comments
 (0)