You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PHPC-2443: Deprecate string argument and accept Int64 instances in UTCDateTime constructor (#1643)
* Refactor UTCDateTime initialisation logic
* PHPC-2443: Deprecate passing string values to UTCDateTime constructor
* PHPC-2443: Accept Int64 instances in UTCDateTime constructor
* Use Int64 instances in tests
* Use 64-bit value in UTCDateTime tests
* Fix missing word in deprecation message
* Extract init methods for utcdatetime_t
php_error_docref(NULL, E_DEPRECATED, "Creating a %s instance with a string is deprecated and will be removed in ext-mongodb 2.0", ZSTR_VAL(php_phongo_utcdatetime_ce->name));
205
226
206
-
if (Z_TYPE_P(milliseconds) !=IS_STRING) {
207
-
phongo_throw_exception(PHONGO_ERROR_INVALID_ARGUMENT, "Expected integer or string, %s given", PHONGO_ZVAL_CLASS_OR_TYPE_NAME_P(milliseconds));
Deprecated: MongoDB\BSON\UTCDateTime::__construct(): Creating a MongoDB\BSON\UTCDateTime instance with a string is deprecated and will be removed in ext-mongodb 2.0 in %s
0 commit comments