File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ public function parseKey($key)
3030 // namespace, and is just a regular configuration item. Namespaces are a
3131 // tool for organizing configuration items for things such as modules.
3232 if (! str_contains ($ key , ':: ' )) {
33- $ segments = explode ('. ' , ( string ) $ key );
33+ $ segments = explode ('. ' , $ key );
3434
3535 $ parsed = $ this ->parseBasicSegments ($ segments );
3636 } else {
@@ -74,12 +74,12 @@ protected function parseBasicSegments(array $segments)
7474 */
7575 protected function parseNamespacedSegments ($ key )
7676 {
77- [$ namespace , $ item ] = explode (':: ' , ( string ) $ key );
77+ [$ namespace , $ item ] = explode (':: ' , $ key );
7878
7979 // First we'll just explode the first segment to get the namespace and group
8080 // since the item should be in the remaining segments. Once we have these
8181 // two pieces of data we can proceed with parsing out the item's value.
82- $ itemSegments = explode ('. ' , ( string ) $ item );
82+ $ itemSegments = explode ('. ' , $ item );
8383
8484 $ groupAndItem = array_slice (
8585 $ this ->parseBasicSegments ($ itemSegments ), 1
You can’t perform that action at this time.
0 commit comments