File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ final class Application extends Container
6868{
6969 use InvokerAware;
7070
71- public const APP_VERSION = '2.1.1 ' ;
71+ public const APP_VERSION = '2.1.2 ' ;
7272
7373 public const MIN_PHP_VERSION = '8.2 ' ;
7474
@@ -250,9 +250,9 @@ public function version(): string
250250 *
251251 * @param string $key The value or object name
252252 * @param callable $value The closure that defines the object
253- * @return void
253+ * @return Application
254254 */
255- public function singleton (string $ key , callable $ value ): void
255+ public function singleton (string $ key , callable $ value ): self
256256 {
257257 $ this ->proxy (name: $ key , callableOrMethodStr: function ($ c ) use ($ value ) {
258258 static $ object ;
@@ -263,6 +263,8 @@ public function singleton(string $key, callable $value): void
263263
264264 return $ object ;
265265 });
266+
267+ return $ this ;
266268 }
267269
268270 /**
@@ -741,7 +743,7 @@ public function hasDebugModeEnabled(): bool
741743 /** @var ConfigContainer $config */
742744 $ config = $ this ->make (name: 'codefy.config ' );
743745
744- if ($ config ->getConfigKey (key: 'app.debug ' ) === ' true ' ) {
746+ if ($ config ->getConfigKey (key: 'app.debug ' ) === true ) {
745747 return true ;
746748 }
747749
You can’t perform that action at this time.
0 commit comments