]> granicus.if.org Git - php/commit
Add return type information to some ext/standard functions
authorNikita Popov <nikita.ppv@gmail.com>
Tue, 28 May 2019 09:01:10 +0000 (11:01 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Tue, 28 May 2019 09:01:10 +0000 (11:01 +0200)
commit521a919caf21f5c924539a9faeaaa8c2f6fb3096
tree63d7ba292a7efe50948653cbca82c0ff8ca2acd6
parentbd4c9bce680b82fc31b84d82d7f272e02e15d4fa
Add return type information to some ext/standard functions

Just the first few functions in basic_functions.c to get started.

If anyone is interested in continuing this, PRs to add type info
will be accepted against master, with the following caveats:

 * Return types only, we are not ready to add argument types yet.
 * Only for functions. For methods the addition of return types is
   BC breaking and needs to be carefully considered.
 * Only in cases where we can actually express the return type, we
   don't have int|false and similar.
ext/standard/basic_functions.c