pestphp/pest breaking changes
pestphp/pest v5.3.6 (November 14, 2026) is its newest release with breaking changes. The first: Behavior changed toUse. Every breaking API change we have recorded in pestphp/pest on Packagist: 23 breaking changes in 4 versions. Below, its 4 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version v5.3.7, released November 16, 2026. MIT license. Source repository
Its v3.0.0 release requires PHP 8.2.0 or later. PHP end of life dates.
- From v4.0.0 to v5.3.6: 1 breaking change in 1 version.
- From v2.0.1 to v5.3.6: 12 breaking changes in 3 versions.
pestphp/pest v5.3.6 breaking changes
- Behavior changed
toUse
A negated toUse assertion with several targets now checks each target. Tests that relied on the earlier looser check may now fail and need review. github.com
pestphp/pest v4.0.0 breaking changes
- Signature changed
Pest\Expectation::__call
Was public function __call(string $method, array $parameters): Expectation|HigherOrderExpectation|PendingArchExpectation; now public function __call(string $method, array $parameters)... packagist.org
pestphp/pest v3.0.0 breaking changes
- Removed
Pest 3 requires PHP 8.2.0 or greater, so projects on older PHP must upgrade PHP before moving to Pest 3. pestphp.com - Removed
Pest\Factories\Annotations\TestDox
Pest\Factories\Annotations\TestDox was removed in pestphp/pest v3.0.0 packagist.org - Removed
tap
The tap() method, deprecated in Pest 2, is removed in Pest 3. Use defer() instead. pestphp.com - Renamed
Pest\Exceptions\DatasetArgsCountMismatch
Use Pest\Exceptions\DatasetArgumentsMismatch instead. packagist.org - Signature changed
Pest\Expectation::toBeUsed
Was public function toBeUsed(): never; now public function toBeUsed(): void. packagist.org - Signature changed
Pest\Expectation::toHaveMethod
The toHaveMethod expectation was replaced by an architectural expectation that expects a namespace or class name. Pass $object::class instead of the object. packagist.org - Signature changed
Pest\Panic
Was final class Panic; now final readonly class Panic. packagist.org - Signature changed
Pest\Plugins\Parallel\Paratest\CleanConsoleOutput::doWrite
Was protected function doWrite(string $message, bool $newline): void; now protected function doWrite(string $message, bool $newline): void // @pest-arch-ignore-line. packagist.org - Signature changed
Pest\TestCaseMethodFilters\TodoTestCaseFilter
Was final class TodoTestCaseFilter implements TestCaseMethodFilter; now final readonly class TodoTestCaseFilter implements TestCaseMethodFilter. packagist.org - Signature changed
toHaveMethods
The toHaveMethods expectation was replaced by an architectural expectation that expects a namespace or class name. Pass $object::class instead of the object. pestphp.com
pestphp/pest v2.0.1 breaking changes
- Removed
Pest 2 needs PHP 8.1.0 or newer, so upgrade PHP before moving pestphp/pest to ^2.0. pestphp.com - Removed
Pest\Laravel\PestServiceProvider
Pest\Laravel\PestServiceProvider was removed in pestphp/pest v2.0.1 packagist.org - Removed
Pest\Logging\TeamCity
Pest\Logging\TeamCity was removed in pestphp/pest v2.0.1 packagist.org - Removed
Pest\Support\Extendable
Pest\Support\Extendable was removed in pestphp/pest v2.0.1 packagist.org - Renamed
faker
Update every call to faker() and its import to use fake() from Pest\Faker instead. pestphp.com - Behavior changed
dataset
Datasets declared in one test file can no longer be used by other files; move globally needed datasets to tests/Pest.php or tests/Datasets.php. pestphp.com - Configuration changed
If phpunit.xml uses a deprecated schema, run pest with --migrate-configuration to update it. pestphp.com - Signature changed
dataset
Was function dataset(string $name, $dataset): void; now function dataset(string $name, Closure|iterable $dataset): void. packagist.org - Signature changed
expect
Was function expect($value = null); now function expect(mixed $value = null): Expectation. packagist.org - Signature changed
test
Was function test(string $description = null, Closure $closure = null); now function test(string $description = null, Closure $closure = null): HigherOrderTapProxy|TestCall. packagist.org
And 1 more in this version. Sign up to see every change
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The 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.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.