Máté Kocsis
27e83d0fb8
Add union return types for function stubs
2019-11-11 14:54:55 +01:00
Nikita Popov
9bbbc9e7e9
Add support for union types in stubs
...
This is the MVP for supporting union types in PHP stubs. Return
types with only builtin types work, which is the part we mainly
need.
Closes GH-4895.
2019-11-08 17:32:18 +01:00
Nikita Popov
5ca46572e6
Allow generating stubs for directory
2019-11-01 16:54:20 +01:00
Nikita Popov
a98307df87
Make arginfo printing of prefer-ref arguments nicer
2019-08-26 15:39:39 +02:00
Nikita Popov
0c2d4d698c
Make sure that params with null default are marked nullable
2019-08-26 14:34:28 +02:00
Theodore Brown
d5f42d68c8
Convert remaining array function arginfo to PHP stubs
2019-08-26 12:53:00 +02:00
Tyson Andre
0c09089caf
Fix escapes for namespaced classes in gen_stub.php
...
Fix the string generated when the `ns\class` is passed to a macro
#define ESCAPE(x) #x
// puts(ESCAPE(ns\class)); // warning: unknown escape sequence: \c
puts(ESCAPE(ns\\class)); // Properly prints ns\class to stdout.
2019-08-23 12:29:55 +02:00
Nikita Popov
37a8408e83
Support typed variadic args in gen_stubs
2019-08-15 22:07:49 +02:00
Craig Duncan
288442716e
Add a prefix to differeniate between class methods and functions
...
Closes GH-4528
2019-08-12 20:57:18 +01:00
Nikita Popov
7c49951769
Support regenerating all stubs
2019-08-12 10:27:22 +02:00
Stephen Reay
44de46ab69
Add support for callable to the stub generator [ci skip]
2019-08-11 18:37:35 +02:00
Nikita Popov
ae721c488d
Handle preprocessor conditions inside classes
...
Also remove the dead parseClass() function.
2019-08-10 16:29:45 +02:00
Stephen Reay
9c02c58481
Fallback to curl in gen_stub if wget fails
...
Closes GH-4502.
2019-08-10 16:21:03 +02:00
Nikita Popov
17987da884
Expand preprocessor support in gen_stubs
...
Support #ifdef, #ifndef, #else and nested #if's.
2019-08-10 15:07:54 +02:00
Nikita Popov
3b2f2ce474
Make uninitialized DateTime an Error
...
This avoids many spurious false return values.
2019-08-09 14:51:25 +02:00
Nikita Popov
33886f710c
Generate arginfo from PHP stub files
...
Signature stubs for internal functions are specified in xyz.stub.php,
from which we generate actual arginfo structures in xyz_arginfo.h.
This file then needs to be included in the implementation appropriately.
Arginfo from stubs can be regenerated using scripts/dev/gen_stub.php.
However, this should also automatically happen when the stub file is
modified.
2019-08-09 14:51:25 +02:00