Migrate doctrine/deprecations to TypeScript

C Runtime-assisted · version 1.1.6

doctrine/deprecations 1.1.6 is a PHP package released under the MIT license and requires PHP ^7.1 || ^8.0. Pext migrates it to TypeScript; on Node.js, 12 of 16 PHPUnit tests pass (75.0%), with 1 failure and 3 errors. It has no tracked dependencies, and 4 tracked packages depend on it.

A small layer on top of trigger_error(E_USER_DEPRECATED) or PSR-3 logging with options to disable all deprecations or selectively for packages.

ConvertsYes
Runs on Node.jsYes
Runs on BunNot yet measured
TypeScript typesNot emitted

PHPUnit results on Node.js

75.0% of 16 tests passing (12 passed, 1 failed, 3 errors, 0 skipped). Verified 2026-10-21.

Where tests fail

The test class with the most failing tests on Node.js:

Test classFailing tests
DeprecationTest4

What “Runtime-assisted” means

Runs and passes most of its tests, with the Pext runtime doing visible work to preserve PHP behaviour.

Requirements

PHP
^7.1 || ^8.0
Extensions
None declared

As declared in the package's Composer metadata. Pext provides PHP extensions through its runtime modules.

Dependencies

No tracked dependencies.

Used by

More from doctrine

Upstream

Version
1.1.6
License
MIT
Homepage
https://www.doctrine-project.org/

Migrating a codebase that uses doctrine/deprecations?

See how Pext migrates a real PHP application, its Composer dependencies and its test suite to TypeScript.