summaryrefslogtreecommitdiff
path: root/ext/date/php_date.stub.php
Commit message (Collapse)AuthorAgeFilesLines
* Implicitly enable function entry generation when class entry generation is ↵Máté Kocsis2021-02-091-4/+1
| | | | | | enabled Closes GH-6675
* Generate class entries for a few extensionsMáté Kocsis2021-02-031-1/+4
| | | | Relates to GH-6644
* Sync date_diff and DateTime::diff return typeNikita Popov2021-01-181-2/+2
| | | | This function/method cannot return false.
* Fix return type of DateTimeImmutable::__set_state()Máté Kocsis2020-12-281-1/+1
|
* DateTime*::getOffset() no longer returns false as of PHP 8.0.0Christoph M. Becker2020-12-261-3/+3
| | | | | | Cf. <https://github.com/php/doc-en/pull/282>. Closes GH-6539.
* Revert "DateTime:: and DateTimeImmutable::getTimestamp() may return false"Christoph M. Becker2020-12-201-2/+2
| | | | This reverts commit b67c23218950eae0a153b093dcefbe14b3b40901.
* DateTime:: and DateTimeImmutable::getTimestamp() may return falseChristoph M. Becker2020-12-201-2/+2
|
* Fix ext/date stubsChristoph M. Becker2020-12-201-4/+4
| | | | Closes GH-6523.
* Require stubs to declare return types for magic methods when possibleMáté Kocsis2020-10-231-0/+6
| | | | Closes GH-6376
* Verify parameter names of function aliasesMáté Kocsis2020-10-161-3/+3
| | | | Closes GH-6335
* Improve parameter names in ext/intlMáté Kocsis2020-10-121-1/+1
| | | | Closes GH-6309
* Add some ValueErrors to ext/dateGeorge Peter Banyard2020-09-161-4/+4
| | | | Closes GH-5613
* Add another round of missing parameter types to stubsMáté Kocsis2020-08-071-1/+6
| | | | Closes GH-5950
* Last pass of 'More consistent parameter names for date/time functions'Derick Rethans2020-07-271-6/+6
|
* Another pass of improving ext/date argument namesDerick Rethans2020-07-261-12/+12
|
* More consistent parameter names for date/time functionsDerick Rethans2020-07-241-30/+30
|
* Add missing param to DatePeriod::__construct()Nikita Popov2020-07-171-1/+1
| | | | | The signature is very overloaded, but takes at most four params, not three.
* Introduce InternalIteratorNikita Popov2020-06-241-1/+3
| | | | | | | | | | | | | | | | | | | Userland classes that implement Traversable must do so either through Iterator or IteratorAggregate. The same requirement does not exist for internal classes: They can implement the internal get_iterator mechanism, without exposing either the Iterator or IteratorAggregate APIs. This makes them usable in get_iterator(), but incompatible with any Iterator based APIs. A lot of internal classes do this, because exposing the userland APIs is simply a lot of work. This patch alleviates this issue by providing a generic InternalIterator class, which acts as an adapater between get_iterator and Iterator, and can be easily used by many internal classes. At the same time, we extend the requirement that Traversable implies Iterator or IteratorAggregate to internal classes as well. Closes GH-5216.
* Convert UNKNOWN default values to null in ext/dateMáté Kocsis2020-05-021-14/+14
| | | | Closes GH-5509
* Add support for generating method entries from stubsMáté Kocsis2020-04-111-99/+226
| | | | Closes GH-5363
* Generate function entries from stubs for a couple of extensionsMáté Kocsis2020-04-041-2/+1
| | | | Closes GH-5347
* Adding DateTime(Immutable)::createFromInterface()mike2020-01-031-0/+4
| | | | | | | | | | | These are like DateTime::createFromImmutable() DateTimeImmutable::createFromMutable() but accept any DateTimeInterface instead. Closes GH-5016.
* Support single class unions in gen stubsNikita Popov2019-11-151-16/+10
|
* Fix DateTimeImmutable stubsNikita Popov2019-11-151-0/+7
| | | | | These were referencing the arginfo from the functions, instead of the methods, which isn't right, as the functions have return types.
* Add union return types for function stubsMáté Kocsis2019-11-111-28/+14
|
* Fix required number of arguments in stubsNikita Popov2019-10-071-5/+5
| | | | | | | | | * get_parent_class() argument is optional * Mark array_filter() $callback as optional * The $base of gmp_strval() is optional * DateTime constructor also accepts zero arguments * hash_update_file() stream context is optional * xmlwriter_write_dtd_entity() $isparam argument is optional
* Add missing parameters to __set_state() methodsKyle2019-08-121-2/+2
| | | | Closes GH-4526.
* Make uninitialized DateTime an ErrorNikita Popov2019-08-091-44/+32
| | | | This avoids many spurious false return values.
* Generate arginfo from PHP stub filesNikita Popov2019-08-091-0/+310
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.