File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ public function register()
3535 {
3636 $ this ->app ['aws ' ] = $ this ->app ->share (function ($ app ) {
3737 // Instantiate the AWS service builder
38- $ config = ( isset ( $ app ['config ' ]) && isset ( $ app [ ' config ' ][ ' aws ' ]) ) ? $ app ['config ' ]['aws ' ] : array ();
38+ $ config = ! empty ( $ app ['config ' ][ ' aws ' ]) ? $ app ['config ' ]['aws ' ] : array ();
3939 $ aws = Aws::factory ($ config );
4040
4141 // Attach an event listener that will append the Laravel version number in the user agent string
Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ public function testNoConfigProvided()
6464 {
6565 // Setup the Laravel app and AWS service provider
6666 $ app = new Application ();
67+ $ app ['config ' ] = array ();
6768 $ provider = new AwsServiceProvider ($ app );
6869 $ app ->register ($ provider );
6970 $ provider ->boot ();
You can’t perform that action at this time.
0 commit comments