Skip to content

Commit

Permalink
Updates param collection to correctly set key/value pairs when conver…
Browse files Browse the repository at this point in the history
…ting to string (#60)
  • Loading branch information
alexstandiford committed Mar 23, 2023
1 parent b69f3d7 commit febb0be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Registries/Param_Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function __toString(): string {
public function to_string(): string {
return (string) ( new Array_Processor( $this->to_array() ) )
->values()
->each( fn ( Param $value ) => $value->to_string() )
->each( fn ( Param $value ) => $value->get_id() . '=' . $value->to_string() )
->set_separator( '&' );
}

Expand Down

0 comments on commit febb0be

Please sign in to comment.