File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -1015,11 +1015,13 @@ function slash_item(string $item): ?string
1015
1015
{
1016
1016
$ config = config (App::class);
1017
1017
1018
+ $ configItem = '' ;
1019
+
1018
1020
if (property_exists ($ config , $ item )) {
1019
- $ configItem = $ config ->{$ item };
1021
+ $ configItem = ( string ) $ config ->{$ item };
1020
1022
}
1021
1023
1022
- if (! isset ($ configItem ) || empty ( trim ( $ configItem )) ) {
1024
+ if (trim ($ configItem ) === '' ) {
1023
1025
return null ;
1024
1026
}
1025
1027
Original file line number Diff line number Diff line change @@ -390,9 +390,9 @@ public function testReallyWritable()
390
390
391
391
public function testSlashItem ()
392
392
{
393
- $ this ->assertSame ('/ ' , slash_item ('cookiePath ' )); // slash already there
394
- $ this ->assertNull (null , slash_item ('cookieDomain ' )); // empty, so untouched
395
- $ this ->assertSame ('en/ ' , slash_item ('defaultLocale ' )); // slash appended
393
+ $ this ->assertSame ('/ ' , slash_item ('cookiePath ' ));
394
+ $ this ->assertNull (slash_item ('cookieDomain ' ));
395
+ $ this ->assertSame ('en/ ' , slash_item ('defaultLocale ' ));
396
396
}
397
397
398
398
protected function injectSessionMock ()
You can’t perform that action at this time.
0 commit comments