You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Volodymyr Panivko (Jira)" <ji...@apache.org> on 2026/05/12 18:51:00 UTC

[jira] [Updated] (THRIFT-5985) Add native method types to PHP Exception hierarchy

     [ https://issues.apache.org/jira/browse/THRIFT-5985?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Volodymyr Panivko updated THRIFT-5985:
--------------------------------------
        Parent: THRIFT-5960
    Issue Type: Sub-task  (was: Improvement)

> Add native method types to PHP Exception hierarchy
> --------------------------------------------------
>
>                 Key: THRIFT-5985
>                 URL: https://issues.apache.org/jira/browse/THRIFT-5985
>             Project: Thrift
>          Issue Type: Sub-task
>          Components: PHP - Library
>            Reporter: Volodymyr Panivko
>            Priority: Minor
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Type the public surface of the PHP exception hierarchy (`lib/php/lib/Exception/`):
> - `TException::__construct` — preserve the bridge constructor (accepts either standard Exception args or Thrift Base spec/vals) via union types `string|array|null` + `int|array`.
> - `TApplicationException::__construct(?string $message = null, int $code = 0)` plus `read()`/`write()` parameter and return types.
> - `TProtocolException::__construct(?string $message = null, int $code = 0)`.
> - `TTransportException::__construct(?string $message = null, int $code = 0)`.
> Follow-up to THRIFT-5981 / THRIFT-5984 within the umbrella THRIFT-5960 (PHP modernization).



--
This message was sent by Atlassian Jira
(v8.20.10#820010)