---
title: "guzzlehttp/uri-template v2.0.0 Breaking Changes on Packagist"
description: "What each guzzlehttp/uri-template release removed, renamed or changed: 20 breaking changes in 1 version on Packagist, each with its source."
canonical_url: https://since.dev/packages/packagist/guzzlehttp/uri-template
last_updated: 2026-12-04
---

# guzzlehttp/uri-template breaking changes

guzzlehttp/uri-template v2.0.0 (July 20, 2026) is its newest release with breaking changes, 20 of them. The first: Finite floats converted to expansion strings while values are formed in guzzlehttp/uri-template v2.0.0. Every breaking API change we have recorded in guzzlehttp/uri-template on Packagist: 20 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `v2.0.1`, released August 24, 2026. MIT license. [Source repository](https://github.com/guzzle/uri-template)

Packages on Packagist run on PHP. [PHP end of life dates](https://since.dev/calendar/php.md).

## guzzlehttp/uri-template v2.0.0 breaking changes

guzzlehttp/uri-template v2.0.0, released July 20, 2026: 20 breaking changes.

- **Behavior changed**  

Finite floats converted to expansion strings while values are formed in guzzlehttp/uri-template v2.0.0 [github.com](https://github.com/guzzle/uri-template/releases/tag/v2.0.0)
- **Behavior changed**  

Nested null values in lists and maps are omitted in guzzlehttp/uri-template v2.0.0 [github.com](https://github.com/guzzle/uri-template/releases/tag/v2.0.0)
- **Behavior changed**  

Non-finite floats throw instead of expanding in guzzlehttp/uri-template v2.0.0 [github.com](https://github.com/guzzle/uri-template/releases/tag/v2.0.0)
- **Behavior changed**  

Booleans expand as 1 and 0 at every nesting level in guzzlehttp/uri-template v2.0.0 [github.com](https://github.com/guzzle/uri-template/releases/tag/v2.0.0)
- **Behavior changed**  

Template syntax validated for every expression before values are formed in guzzlehttp/uri-template v2.0.0 [github.com](https://github.com/guzzle/uri-template/releases/tag/v2.0.0)
- **Behavior changed**  

Prefix modifiers rejected for list and map values in guzzlehttp/uri-template v2.0.0 [github.com](https://github.com/guzzle/uri-template/releases/tag/v2.0.0)
- **Behavior changed**  

Invalid UTF-8 in values and map keys rejected while values are formed in guzzlehttp/uri-template v2.0.0 [github.com](https://github.com/guzzle/uri-template/releases/tag/v2.0.0)
- **Behavior changed**  

Non-empty lists of all nulls are now defined variables in guzzlehttp/uri-template v2.0.0 [github.com](https://github.com/guzzle/uri-template/releases/tag/v2.0.0)
- **Behavior changed**  

Templates with invalid syntax raise InvalidArgumentException rather than producing partial output. Code relying on partial expansion must handle the exception. [github.com](https://github.com/guzzle/uri-template/releases/tag/v2.0.0)
- **Behavior changed**  

Literal template text is validated and non-ASCII literals are pct-encoded in guzzlehttp/uri-template v2.0.0 [github.com](https://github.com/guzzle/uri-template/releases/tag/v2.0.0)
- **Behavior changed**  

Referenced values detached and formed before expansion begins in guzzlehttp/uri-template v2.0.0 [github.com](https://github.com/guzzle/uri-template/releases/tag/v2.0.0)
- **Behavior changed**  

Exceptions from \_\_toString() surface while values are formed in guzzlehttp/uri-template v2.0.0 [github.com](https://github.com/guzzle/uri-template/releases/tag/v2.0.0)
- **Behavior changed**  

Dense zero-indexed arrays expand as lists, sparse arrays as maps in guzzlehttp/uri-template v2.0.0 [github.com](https://github.com/guzzle/uri-template/releases/tag/v2.0.0)
- **Behavior changed**  

Native PHP serialization and unserialization rejected in guzzlehttp/uri-template v2.0.0 [github.com](https://github.com/guzzle/uri-template/releases/tag/v2.0.0)
- **Behavior changed**  

Variable values must be valid UTF-8 in guzzlehttp/uri-template v2.0.0 [github.com](https://github.com/guzzle/uri-template/releases/tag/v2.0.0)
- **Behavior changed**  

Referenced variable values validated before expansion in guzzlehttp/uri-template v2.0.0 [github.com](https://github.com/guzzle/uri-template/releases/tag/v2.0.0)
- **Behavior changed**  

Stringable objects converted once per value position in guzzlehttp/uri-template v2.0.0 [github.com](https://github.com/guzzle/uri-template/releases/tag/v2.0.0)
- **Behavior changed**  

Variable specifier whitespace padding detected with the real whitespace set in guzzlehttp/uri-template v2.0.0 [github.com](https://github.com/guzzle/uri-template/releases/tag/v2.0.0)
- **Behavior changed**  

Variable names and modifiers validated per RFC 6570 in guzzlehttp/uri-template v2.0.0 [github.com](https://github.com/guzzle/uri-template/releases/tag/v2.0.0)
- **Signature changed** `UriTemplate`  

Use the static UriTemplate::expand() method instead of creating an instance. [github.com](https://github.com/guzzle/uri-template/releases/tag/v2.0.0)

## Related packages

- [guzzlehttp/guzzle](https://since.dev/packages/packagist/guzzlehttp/guzzle.md)
- [guzzlehttp/promises](https://since.dev/packages/packagist/guzzlehttp/promises.md)
- [guzzlehttp/psr7](https://since.dev/packages/packagist/guzzlehttp/psr7.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
