Skip to content

Commit febb0be

Browse files
Updates param collection to correctly set key/value pairs when converting to string (#60)
1 parent b69f3d7 commit febb0be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Registries/Param_Collection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function __toString(): string {
7272
public function to_string(): string {
7373
return (string) ( new Array_Processor( $this->to_array() ) )
7474
->values()
75-
->each( fn ( Param $value ) => $value->to_string() )
75+
->each( fn ( Param $value ) => $value->get_id() . '=' . $value->to_string() )
7676
->set_separator( '&' );
7777
}
7878

0 commit comments

Comments
 (0)