Skip to content

Commit da0220a

Browse files
committed
Merge branch '4.5.x' into 5.0.x
* 4.5.x: [Doc] Update caching.rst (doctrine#7322) Bump the doctrine group with 4 updates Bump codecov/codecov-action from 5 to 6 Group Doctrine workflow updates together (doctrine#7340) Fix Json object mapping (doctrine#7336)
2 parents e375fdd + f41aaae commit da0220a

11 files changed

Lines changed: 120 additions & 10 deletions

File tree

.github/dependabot.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,7 @@ updates:
77
labels:
88
- "CI"
99
target-branch: "3.10.x"
10+
groups:
11+
doctrine:
12+
patterns:
13+
- "doctrine/*"

.github/workflows/coding-standards.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ on:
2525
jobs:
2626
coding-standards:
2727
name: "Coding Standards"
28-
uses: "doctrine/.github/.github/workflows/coding-standards.yml@14.0.0"
28+
uses: "doctrine/.github/.github/workflows/coding-standards.yml@15.0.0"
2929
with:
3030
composer-options: "--ignore-platform-req=php+"

.github/workflows/continuous-integration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ jobs:
312312
working-directory: reports
313313

314314
- name: "Upload to Codecov"
315-
uses: "codecov/codecov-action@v5"
315+
uses: "codecov/codecov-action@v6"
316316
with:
317317
directory: reports
318318
fail_ci_if_error: true

.github/workflows/documentation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ on:
1717
jobs:
1818
documentation:
1919
name: "Documentation"
20-
uses: "doctrine/.github/.github/workflows/documentation.yml@14.0.0"
20+
uses: "doctrine/.github/.github/workflows/documentation.yml@15.0.0"

.github/workflows/static-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ on:
2525
jobs:
2626
static-analysis-phpstan:
2727
name: "Static Analysis"
28-
uses: "doctrine/.github/.github/workflows/phpstan.yml@14.0.0"
28+
uses: "doctrine/.github/.github/workflows/phpstan.yml@15.0.0"

.github/workflows/website-schema.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ on:
1717
jobs:
1818
json-validate:
1919
name: "Validate JSON schema"
20-
uses: "doctrine/.github/.github/workflows/website-schema.yml@14.0.0"
20+
uses: "doctrine/.github/.github/workflows/website-schema.yml@15.0.0"

docs/en/reference/caching.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Caching
44
A ``Doctrine\DBAL\Connection`` can automatically cache result sets. The
55
feature is optional though, and by default, no result set is cached.
66

7-
To use the result cache, there are three mandatory steps:
7+
To use the result cache, there are two mandatory steps:
88

99
1. Configure a global result cache, or provide one at query time.
1010
2. Provide a cache profile for the result set you want to cache when

src/Types/Type.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ abstract class Type
4444
Types::GUID => GuidType::class,
4545
Types::INTEGER => IntegerType::class,
4646
Types::JSON => JsonType::class,
47-
Types::JSON_OBJECT => JsonType::class,
47+
Types::JSON_OBJECT => JsonObjectType::class,
4848
Types::JSONB => JsonbType::class,
49-
Types::JSONB_OBJECT => JsonbType::class,
49+
Types::JSONB_OBJECT => JsonbObjectType::class,
5050
Types::SIMPLE_ARRAY => SimpleArrayType::class,
5151
Types::SMALLFLOAT => SmallFloatType::class,
5252
Types::SMALLINT => SmallIntType::class,

tests/Functional/Types/JsonObjectTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ private function select(int $id): object
9696

9797
self::assertIsString($value);
9898

99-
$value = json_decode($value, false);
99+
$value = $this->connection->convertToPHPValue($value, Types::JSON_OBJECT);
100100

101101
self::assertIsObject($value);
102102

tests/Functional/Types/JsonTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,10 @@ private function select(int $id): array
105105

106106
self::assertIsString($value);
107107

108-
$value = json_decode($value, true);
108+
$value = Type::getType(Types::JSON)->convertToPHPValue(
109+
$value,
110+
$this->connection->getDatabasePlatform(),
111+
);
109112

110113
self::assertIsArray($value);
111114

0 commit comments

Comments
 (0)