Commit e522f23 1 parent e977e0b commit e522f23 Copy full SHA for e522f23
File tree 4 files changed +5
-5
lines changed
4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -26,8 +26,8 @@ abstract class BaseRouter {
26
26
27
27
public function __construct (
28
28
protected ?ConfigSection $ routerConfig = null ,
29
- Assembly $ viewAssembly = null ,
30
- Assembly $ logicAssembly = null ,
29
+ ? Assembly $ viewAssembly = null ,
30
+ ? Assembly $ logicAssembly = null ,
31
31
) {
32
32
$ this ->viewAssembly = $ viewAssembly ?? new Assembly ();
33
33
$ this ->logicAssembly = $ logicAssembly ?? new Assembly ();
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ private function loadContents(SplFileObject $file):void {
83
83
if (str_starts_with ($ trimmedLine , "namespace " )) {
84
84
$ foundNamespace = true ;
85
85
}
86
- elseif ($ trimmedLine ) {
86
+ elseif ($ trimmedLine ) {
87
87
$ namespace = new LogicStreamNamespace (
88
88
$ this ->path ,
89
89
self ::NAMESPACE_PREFIX
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ public function __construct(
14
14
$ this ->assemblyList = $ assemblyList ;
15
15
}
16
16
17
- public function get (string $ key = null , bool $ extra = false ):?string {
17
+ public function get (? string $ key = null , bool $ extra = false ):?string {
18
18
$ requestPathParts = explode ("/ " , $ this ->requestPath );
19
19
20
20
foreach ($ this ->assemblyList as $ assembly ) {
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ class PathMatcher {
8
8
9
9
public function __construct (
10
10
private string $ baseDirectory ,
11
- DirectoryExpander $ expander = null
11
+ ? DirectoryExpander $ expander = null
12
12
) {
13
13
$ this ->expander = $ expander ?? new DirectoryExpander ();
14
14
$ this ->filterArray = [];
You can’t perform that action at this time.
0 commit comments