History log of /PHP-8.2/ext/date/php_date.stub.php (Results 26 – 48 of 48)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# b67c2321 20-Dec-2020 Christoph M. Becker

DateTime:: and DateTimeImmutable::getTimestamp() may return false

# 3c68f432 09-Dec-2020 Christoph M. Becker

Fix ext/date stubs

Closes GH-6523.

# 47bbfe1f 23-Oct-2020 Máté Kocsis

Require stubs to declare return types for magic methods when possible

Closes GH-6376

# d6264b09 13-Oct-2020 Máté Kocsis

Verify parameter names of function aliases

Closes GH-6335

# 186612e4 09-Oct-2020 Máté Kocsis

Improve parameter names in ext/intl

Closes GH-6309

# 95f4ee38 22-May-2020 George Peter Banyard

Add some ValueErrors to ext/date

Closes GH-5613

# 046cc5e4 07-Aug-2020 Máté Kocsis

Add another round of missing parameter types to stubs

Closes GH-5950

# cdc85233 27-Jul-2020 Derick Rethans

Last pass of 'More consistent parameter names for date/time functions'

# f66627ab 26-Jul-2020 Derick Rethans

Another pass of improving ext/date argument names

# e96e4ac7 24-Jul-2020 Derick Rethans

More consistent parameter names for date/time functions

# 81d8d602 17-Jul-2020 Nikita Popov

Add missing param to DatePeriod::__construct()

The signature is very overloaded, but takes at most four params,
not three.

# ff19ec2d 26-Feb-2020 Nikita Popov

Introduce InternalIterator

Userland classes that implement Traversable must do so either
through Iterator or IteratorAggregate. The same requirement does
not exist for internal class

Introduce InternalIterator

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.

show more ...

# ffcc8135 01-May-2020 Máté Kocsis

Convert UNKNOWN default values to null in ext/date

Closes GH-5509

# 1d05771a 09-Apr-2020 Máté Kocsis

Add support for generating method entries from stubs

Closes GH-5363

# 7c307873 04-Apr-2020 Máté Kocsis

Generate function entries from stubs for a couple of extensions

Closes GH-5347

# 1658b5ba 16-Dec-2019 mike

Adding DateTime(Immutable)::createFromInterface()

These are like

DateTime::createFromImmutable()
DateTimeImmutable::createFromMutable()

but accept any DateTimeI

Adding DateTime(Immutable)::createFromInterface()

These are like

DateTime::createFromImmutable()
DateTimeImmutable::createFromMutable()

but accept any DateTimeInterface instead.

Closes GH-5016.

show more ...

Revision tags: php-7.3.13RC1, php-7.2.26RC1, php-7.4.0, php-7.2.25, php-7.3.12
# 0cec268d 15-Nov-2019 Nikita Popov

Support single class unions in gen stubs

# 468ecf29 15-Nov-2019 Nikita Popov

Fix DateTimeImmutable stubs

These were referencing the arginfo from the functions, instead of
the methods, which isn't right, as the functions have return types.

Revision tags: php-7.4.0RC6
# 27e83d0f 08-Nov-2019 Máté Kocsis

Add union return types for function stubs

Revision tags: php-7.3.12RC1, php-7.2.25RC1, php-7.4.0RC5, php-7.1.33, php-7.2.24, php-7.3.11, php-7.4.0RC4, php-7.3.11RC1, php-7.2.24RC1
# 5f80eb78 07-Oct-2019 Nikita Popov

Fix required number of arguments in stubs

* get_parent_class() argument is optional
* Mark array_filter() $callback as optional
* The $base of gmp_strval() is optional
* DateTime

Fix required number of arguments in stubs

* 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

show more ...

Revision tags: php-7.4.0RC3, php-7.2.23, php-7.3.10, php-7.4.0RC2, php-7.2.23RC1, php-7.3.10RC1, php-7.4.0RC1, php-7.1.32, php-7.2.22, php-7.3.9, php-7.4.0beta4, php-7.2.22RC1, php-7.3.9RC1
# b17957ea 12-Aug-2019 Kyle

Add missing parameters to __set_state() methods

Closes GH-4526.

# 3b2f2ce4 09-Aug-2019 Nikita Popov

Make uninitialized DateTime an Error

This avoids many spurious false return values.

Revision tags: php-7.4.0beta2, php-7.1.31, php-7.2.21, php-7.3.8, php-7.4.0beta1, php-7.2.21RC1, php-7.3.8RC1, php-7.4.0alpha3, php-7.3.7, php-7.2.20, php-7.4.0alpha2, php-7.3.7RC3
# 33886f71 18-Jun-2019 Nikita Popov

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 fil

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.

show more ...

12