Skip to content

Commit

Permalink
Fix PHPUnit deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
charjr committed Mar 26, 2023
1 parent f4d5571 commit 979257d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/ApiProblemBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function buildFromRendererTest(): void
self::assertEquals($expected, json_decode($actual->getContent(), true));
}

public function dataSetsToBuildFromException(): array
public static function dataSetsToBuildFromException(): array
{
return [
'path not found, no apiResponseTypes' => [
Expand Down
2 changes: 1 addition & 1 deletion tests/Middleware/RequestValidationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function registersResultInstanceInContainer(): void
$sut->handle(Request::create($url), fn($var) => new Response());
}

public function dataSetsThatThrowCannotProcessRequest(): array
public static function dataSetsThatThrowCannotProcessRequest(): array
{
return [
'path not found' => [
Expand Down
2 changes: 1 addition & 1 deletion tests/Middleware/ResponseJsonFlatTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*/
class ResponseJsonFlatTest extends TestCase
{
public function dataSetsToHandle(): array
public static function dataSetsToHandle(): array
{
return [
'valid results return valid responses' => [
Expand Down
2 changes: 1 addition & 1 deletion tests/Middleware/ResponseJsonNestedTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*/
class ResponseJsonNestedTest extends TestCase
{
public function dataSetsToHandle(): array
public static function dataSetsToHandle(): array
{
return [
'valid results return valid responses' => [
Expand Down

0 comments on commit 979257d

Please sign in to comment.