Skip to content

Commit 5ec2a84

Browse files
committed
Merge branch 'release/3.0.1'
2 parents 1ada998 + e247870 commit 5ec2a84

File tree

5 files changed

+11
-4
lines changed

5 files changed

+11
-4
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
strategy:
1515
fail-fast: true
1616
matrix:
17-
php: [8.2, 8.3]
17+
php: [8.2, 8.3, 8.4]
1818

1919
steps:
2020
- name: Checkout Code

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. This projec
55

66
## Unreleased
77

8+
## [3.0.1] - 2024-11-26
9+
10+
### Fixed
11+
12+
- Remove deprecation notices on PHP 8.4.
13+
814
## [3.0.0] - 2024-03-12
915

1016
### Changed

phpunit.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
failOnWarning="true"
1414
failOnDeprecation="true"
1515
failOnNotice="true"
16+
displayDetailsOnTestsThatTriggerDeprecations="true"
1617
>
1718
<coverage/>
1819
<testsuites>

src/MakesJsonApiRequests.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ trait MakesJsonApiRequests
1919
* the expected resource type.
2020
* @return TestBuilder
2121
*/
22-
protected function jsonApi(string $expects = null): TestBuilder
22+
protected function jsonApi(?string $expects = null): TestBuilder
2323
{
2424
$tester = new TestBuilder($this);
2525

src/TestResponse.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public static function cast($response): self
4141
* @param Response $response
4242
* @param string|null $expectedType
4343
*/
44-
public function __construct($response, string $expectedType = null)
44+
public function __construct($response, ?string $expectedType = null)
4545
{
4646
parent::__construct($response);
4747

@@ -116,7 +116,7 @@ public function getLocation(): ?string
116116
* @param string|null $pointer
117117
* @return Document|mixed
118118
*/
119-
public function jsonApi(string $pointer = null)
119+
public function jsonApi(?string $pointer = null)
120120
{
121121
$document = $this->getDocument();
122122

0 commit comments

Comments
 (0)