Skip to content

Commit 1c0b742

Browse files
committed
Merge branch 'release/6.0.1'
2 parents 7634cd0 + 9997051 commit 1c0b742

10 files changed

+16
-11
lines changed

.github/workflows/tests.yml

+1-1
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
laravel: [10, 11]
1919
phpunit: [10.5, 11]
2020

CHANGELOG.md

+6
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+
## [6.0.1] - 2024-11-30
9+
10+
### Fixed
11+
12+
- Remove deprecation notices from PHP 8.4.
13+
814
## [6.0.0] - 2024-03-12
915

1016
### Changed

README.md

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
[![Build Status](https://travis-ci.org/cloudcreativity/json-api-testing.svg?branch=master)](https://travis-ci.org/cloudcreativity/json-api)
2-
31
# cloudcreativity/json-api-testing
42

53
PHPUnit test helpers for checking JSON API documents.

phpunit.xml

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

src/Constraints/HttpStatusIsSuccessful.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class HttpStatusIsSuccessful extends Constraint
3232
*
3333
* @param string|null $content
3434
*/
35-
public function __construct(string $content = null)
35+
public function __construct(?string $content = null)
3636
{
3737
$this->content = $content;
3838
}

src/Constraints/OnlyExactInList.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class OnlyExactInList extends OnlySubsetsInList
2626
/**
2727
* @inheritdoc
2828
*/
29-
protected function fail($other, $description, ComparisonFailure $comparisonFailure = null): never
29+
protected function fail($other, $description, ?ComparisonFailure $comparisonFailure = null): never
3030
{
3131
$comparisonFailure = Compare::failure(
3232
$this->expected,

src/Constraints/OnlyIdentifiersInList.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class OnlyIdentifiersInList extends OnlySubsetsInList
2626
/**
2727
* @inheritdoc
2828
*/
29-
protected function fail($other, $description, ComparisonFailure $comparisonFailure = null): never
29+
protected function fail($other, $description, ?ComparisonFailure $comparisonFailure = null): never
3030
{
3131
$comparisonFailure = Compare::failure(
3232
$this->expected,

src/Constraints/OnlySubsetsInList.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public function toString(): string
9292
/**
9393
* @inheritdoc
9494
*/
95-
protected function fail($other, $description, ComparisonFailure $comparisonFailure = null): never
95+
protected function fail($other, $description, ?ComparisonFailure $comparisonFailure = null): never
9696
{
9797
if (!$comparisonFailure) {
9898
$comparisonFailure = Compare::failure(

src/HttpAssert.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class HttpAssert
5050
public static function assertStatusCode(
5151
$status,
5252
int $expected,
53-
string $content = null,
53+
?string $content = null,
5454
string $message = ''
5555
): void
5656
{
@@ -562,7 +562,7 @@ public static function assertAcceptedWithId(
562562
* @param string $message
563563
* @return void
564564
*/
565-
public static function assertNoContent($status, string $content = null, string $message = ''): void
565+
public static function assertNoContent($status, ?string $content = null, string $message = ''): void
566566
{
567567
self::assertStatusCode($status, self::STATUS_NO_CONTENT, $content, $message);
568568
PHPUnitAssert::assertEmpty($content, $message ?: 'Expecting HTTP body content to be empty.');

src/HttpMessage.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ class HttpMessage implements ArrayAccess
5252
*/
5353
public function __construct(
5454
int $status,
55-
string $contentType = null,
56-
string $content = null,
55+
?string $contentType = null,
56+
?string $content = null,
5757
array $headers = []
5858
) {
5959
$this->status = $status;

0 commit comments

Comments
 (0)