File tree Expand file tree Collapse file tree 3 files changed +10
-4
lines changed
Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 3737 "require-dev" : {
3838 "maplephp/unitary" : " ^2.0"
3939 },
40+ "extra" : {
41+ "branch-alias" : {
42+ "dev-main" : " 1.x-dev"
43+ }
44+ },
4045 "autoload" : {
4146 "psr-4" : {
4247 "MaplePHP\\ Emitron\\ " : " src"
Original file line number Diff line number Diff line change @@ -57,10 +57,10 @@ public function __construct(
5757 /**
5858 * Makes it easy to specify a config file inside a custom kernel file
5959 *
60- * @param string $path
60+ * @param string|null $path
6161 * @return void
6262 */
63- public static function setConfigFilePath (string $ path ): void
63+ public static function setConfigFilePath (? string $ path ): void
6464 {
6565 static ::$ configFilePath = $ path ;
6666 }
@@ -81,10 +81,10 @@ public static function getConfigFilePath(): string
8181 /**
8282 * Set router path
8383 *
84- * @param string $path
84+ * @param string|null $path
8585 * @return void
8686 */
87- public static function setRouterFilePath (string $ path ): void
87+ public static function setRouterFilePath (? string $ path ): void
8888 {
8989 static ::$ routerFilePath = $ path ;
9090 }
Original file line number Diff line number Diff line change @@ -127,6 +127,7 @@ public function loadConfigFile(string $path): void
127127 }
128128
129129 $ config = require $ path ;
130+ // Add json logic here in the future
130131 if (!is_array ($ config )) {
131132 throw new Exception ('The config file do not return a array ' );
132133 }
You can’t perform that action at this time.
0 commit comments