Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 1a3e58d

Browse files
mongodb-php-botGromNaN
authored andcommittedFeb 28, 2025··
Merge v1.x into v2.x (#1614)
2 parents 4509fe6 + ad5b49a commit 1a3e58d

File tree

131 files changed

+1213
-864
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

131 files changed

+1213
-864
lines changed
 

‎.github/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ changelog:
22
exclude:
33
authors:
44
- mongodb-php-bot
5-
- dependabot[bot]
5+
- dependabot

‎generator/config/expressions.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
namespace MongoDB\Builder\Expression;
88

9+
use DateTimeInterface;
910
use MongoDB\BSON;
1011
use MongoDB\Builder\Pipeline;
1112
use MongoDB\Builder\Type;
@@ -26,7 +27,7 @@
2627
'binData' => ['string', BSON\Binary::class],
2728
'objectId' => [BSON\ObjectId::class],
2829
'bool' => ['bool'],
29-
'date' => [BSON\UTCDateTime::class],
30+
'date' => [BSON\UTCDateTime::class, DateTimeInterface::class],
3031
'null' => ['null'],
3132
'regex' => [BSON\Regex::class],
3233
'javascript' => ['string', BSON\Javascript::class],
@@ -37,7 +38,7 @@
3738
];
3839

3940
// "any" accepts all the BSON types. No generic "object" or "mixed"
40-
$bsonTypes['any'] = ['bool', 'int', 'float', 'string', 'array', 'null', stdClass::class, BSON\Type::class];
41+
$bsonTypes['any'] = ['bool', 'int', 'float', 'string', 'array', 'null', stdClass::class, BSON\Type::class, DateTimeInterface::class];
4142

4243
// "number" accepts all the numeric types
4344
$bsonTypes['number'] = ['int', 'float', BSON\Int64::class, BSON\Decimal128::class];

0 commit comments

Comments
 (0)
Please sign in to comment.