Skip to content

Commit 834220f

Browse files
committed
Merge branch '1.24.x' into 2.0.x
2 parents 86bcdac + dd868eb commit 834220f

11 files changed

Lines changed: 24 additions & 11 deletions

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@
1212
/phpunit.xml.dist export-ignore
1313
/psalm.xml export-ignore
1414
/psalm-baseline.xml export-ignore
15-
/test/ export-ignore
15+
/tests/ export-ignore
1616
/tools/ export-ignore

.github/workflows/backward-compatibility-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
fetch-depth: 0
2828

2929
- name: "Install PHP"
30-
uses: "shivammathur/setup-php@2.37.0"
30+
uses: "shivammathur/setup-php@2.37.2"
3131
with:
3232
php-version: "${{ matrix.php-version }}"
3333
ini-values: memory_limit=-1

.github/workflows/benchmark.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222

2323
steps:
2424
- name: "Install PHP"
25-
uses: "shivammathur/setup-php@2.37.0"
25+
uses: "shivammathur/setup-php@2.37.2"
2626
with:
2727
coverage: "none"
2828
php-version: "${{ matrix.php-version }}"

.github/workflows/coding-standard.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
uses: actions/checkout@v6
3030

3131
- name: "Install PHP"
32-
uses: "shivammathur/setup-php@2.37.0"
32+
uses: "shivammathur/setup-php@2.37.2"
3333
with:
3434
php-version: "${{ matrix.php-version }}"
3535
ini-values: memory_limit=-1

.github/workflows/mutation-tests-diff.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
fetch-depth: 0
2828

2929
- name: "Install PHP"
30-
uses: "shivammathur/setup-php@2.37.0"
30+
uses: "shivammathur/setup-php@2.37.2"
3131
with:
3232
coverage: "pcov"
3333
php-version: "${{ matrix.php-version }}"

.github/workflows/mutation-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
uses: actions/checkout@v6
3030

3131
- name: "Install PHP"
32-
uses: "shivammathur/setup-php@2.37.0"
32+
uses: "shivammathur/setup-php@2.37.2"
3333
with:
3434
coverage: "pcov"
3535
php-version: "${{ matrix.php-version }}"

.github/workflows/phpstan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
uses: actions/checkout@v6
3030

3131
- name: "Install PHP"
32-
uses: "shivammathur/setup-php@2.37.0"
32+
uses: "shivammathur/setup-php@2.37.2"
3333
with:
3434
php-version: "${{ matrix.php-version }}"
3535
ini-values: memory_limit=-1

.github/workflows/unit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
uses: actions/checkout@v6
4747

4848
- name: "Install PHP"
49-
uses: "shivammathur/setup-php@2.37.0"
49+
uses: "shivammathur/setup-php@2.37.2"
5050
with:
5151
coverage: "pcov"
5252
php-version: "${{ matrix.php-version }}"

src/Hydrator.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,18 @@ interface Hydrator
1515
* @return T
1616
*
1717
* @throws ClassNotSupported if the class is not supported or not found.
18+
* @throws DenormalizationFailure if any normalizers throw an exception.
19+
* @throws TypeMismatch if a TypeError occurs when setting a property value.
20+
* @throws HydratorException Any other thrown exceptions should implement HydratorException.
1821
*
1922
* @template T of object
2023
*/
2124
public function hydrate(string $class, mixed $data, array $context = []): object;
2225

23-
/** @param array<string, mixed> $context */
26+
/**
27+
* @param array<string, mixed> $context
28+
*
29+
* @throws HydratorException
30+
*/
2431
public function extract(object $object, array $context = []): mixed;
2532
}

src/HydratorException.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
namespace Patchlevel\Hydrator;
66

7-
interface HydratorException
7+
use Throwable;
8+
9+
interface HydratorException extends Throwable
810
{
911
}

0 commit comments

Comments
 (0)