Skip to content

Commit d503699

Browse files
authored
Merge branch 'master' into add-php-stan
2 parents 215e45b + af13eda commit d503699

Some content is hidden

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

69 files changed

+2260
-529
lines changed

.github/workflows/build-ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ jobs:
1414
strategy:
1515
matrix:
1616
php:
17-
- '8.0'
17+
- '8.1'
1818
steps:
1919
- name: Checkout
20-
uses: actions/checkout@v2
20+
uses: actions/checkout@v3
2121
- name: Setup PHP
2222
uses: shivammathur/setup-php@v2
2323
with:
@@ -61,8 +61,8 @@ jobs:
6161
- '4.4'
6262
- '5.0'
6363
php:
64-
- '8.0'
6564
- '8.1'
65+
- '8.2'
6666
services:
6767
mysql:
6868
image: mysql:5.7
@@ -74,7 +74,7 @@ jobs:
7474
MYSQL_ROOT_PASSWORD:
7575

7676
steps:
77-
- uses: actions/checkout@v2
77+
- uses: actions/checkout@v3
7878
- name: Create MongoDB Replica Set
7979
run: |
8080
docker run --name mongodb -p 27017:27017 -e MONGO_INITDB_DATABASE=unittest --detach mongo:${{ matrix.mongodb }} mongod --replSet rs --setParameter transactionLifetimeLimitSeconds=5

CHANGELOG.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,24 @@ All notable changes to this project will be documented in this file.
33

44
## [Unreleased]
55

6+
- Add classes to cast `ObjectId` and `UUID` instances [#1](https://github.com/GromNaN/laravel-mongodb/pull/1) by [@alcaeus](https://github.com/alcaeus).
7+
- Add `Query\Builder::toMql()` to simplify comprehensive query tests [#6](https://github.com/GromNaN/laravel-mongodb/pull/6) by [@GromNaN](https://github.com/GromNaN).
8+
- Fix `Query\Builder::whereNot` to use MongoDB [`$not`](https://www.mongodb.com/docs/manual/reference/operator/query/not/) operator [#13](https://github.com/GromNaN/laravel-mongodb/pull/13) by [@GromNaN](https://github.com/GromNaN).
9+
- Fix `Query\Builder::whereBetween` to accept `Carbon\Period` object [#10](https://github.com/GromNaN/laravel-mongodb/pull/10) by [@GromNaN](https://github.com/GromNaN).
10+
- Throw an exception for unsupported `Query\Builder` methods [#9](https://github.com/GromNaN/laravel-mongodb/pull/9) by [@GromNaN](https://github.com/GromNaN).
11+
- Throw an exception when `Query\Builder::orderBy()` is used with invalid direction [#7](https://github.com/GromNaN/laravel-mongodb/pull/7) by [@GromNaN](https://github.com/GromNaN).
12+
- Throw an exception when `Query\Builder::push()` is used incorrectly [#5](https://github.com/GromNaN/laravel-mongodb/pull/5) by [@GromNaN](https://github.com/GromNaN).
13+
- Remove public property `Query\Builder::$paginating` [#15](https://github.com/GromNaN/laravel-mongodb/pull/15) by [@GromNaN](https://github.com/GromNaN).
14+
- Remove call to deprecated `Collection::count` for `countDocuments` [#18](https://github.com/GromNaN/laravel-mongodb/pull/18) by [@GromNaN](https://github.com/GromNaN).
15+
- Accept operators prefixed by `$` in `Query\Builder::orWhere` [#20](https://github.com/GromNaN/laravel-mongodb/pull/20) by [@GromNaN](https://github.com/GromNaN).
16+
- Remove `Query\Builder::whereAll($column, $values)`. Use `Query\Builder::where($column, 'all', $values)` instead. [#16](https://github.com/GromNaN/laravel-mongodb/pull/16) by [@GromNaN](https://github.com/GromNaN).
17+
- Fix validation of unique values when the validated value is found as part of an existing value. [#21](https://github.com/GromNaN/laravel-mongodb/pull/21) by [@GromNaN](https://github.com/GromNaN).
18+
- Support `%` and `_` in `like` expression [#17](https://github.com/GromNaN/laravel-mongodb/pull/17) by [@GromNaN](https://github.com/GromNaN).
19+
- Change signature of `Query\Builder::__constructor` to match the parent class [#26](https://github.com/GromNaN/laravel-mongodb-private/pull/26) by [@GromNaN](https://github.com/GromNaN).
20+
621
## [3.9.2] - 2022-09-01
722

8-
### Addded
23+
### Added
924
- Add single word name mutators [#2438](https://github.com/jenssegers/laravel-mongodb/pull/2438) by [@RosemaryOrchard](https://github.com/RosemaryOrchard) & [@mrneatly](https://github.com/mrneatly).
1025

1126
### Fixed

Dockerfile

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
ARG PHP_VERSION=8.0
2-
ARG COMPOSER_VERSION=2.0
1+
ARG PHP_VERSION=8.1
2+
ARG COMPOSER_VERSION=2.5.4
33

4-
FROM composer:${COMPOSER_VERSION}
54
FROM php:${PHP_VERSION}-cli
65

76
RUN apt-get update && \
@@ -10,6 +9,16 @@ RUN apt-get update && \
109
pecl install xdebug && docker-php-ext-enable xdebug && \
1110
docker-php-ext-install -j$(nproc) pdo_mysql zip
1211

13-
COPY --from=composer /usr/bin/composer /usr/local/bin/composer
12+
COPY --from=composer:${COMPOSER_VERSION} /usr/bin/composer /usr/local/bin/composer
1413

1514
WORKDIR /code
15+
16+
COPY composer.* ./
17+
18+
RUN composer install
19+
20+
COPY ./ ./
21+
22+
RUN composer install
23+
24+
CMD ["./vendor/bin/phpunit"]

0 commit comments

Comments
 (0)