File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -17,11 +17,9 @@ other core packages, you can create that in the constructor using the
1717override that:
1818
1919``` php
20- public function __construct(Foo $foo= null)
20+ public function __construct(? Foo $foo = null)
2121 {
22- $this->foo = $foo instanceOf Foo
23- ? $foo
24- : \Config\Services::foo();
22+ $this->foo = $foo ?? \Config\Services::foo();
2523 }
2624```
2725
@@ -75,7 +73,7 @@ package itself will need its own sub-namespace that collects all related
7573files into one grouping, like ` CodeIgniter\HTTP ` .
7674
7775Files MUST be named the same as the class they hold, and they must match
78- the Style Guide & lt ; ./ styleguide.md& gt ; , meaning CamelCase class and
76+ the [ Style Guide] ( styleguide.md ) , meaning CamelCase class and
7977file names. They should be in their own directory that matches the
8078sub-namespace under the ** system** directory.
8179
You can’t perform that action at this time.
0 commit comments