Volodymyr Panivko created THRIFT-5985:
-----------------------------------------

             Summary: Add native method types to PHP Exception hierarchy
                 Key: THRIFT-5985
                 URL: https://issues.apache.org/jira/browse/THRIFT-5985
             Project: Thrift
          Issue Type: Improvement
          Components: PHP - Library
            Reporter: Volodymyr Panivko


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)

Reply via email to