Skip to content

Commit

Permalink
Make data providers static for phpunit 10
Browse files Browse the repository at this point in the history
  • Loading branch information
williamdes committed Sep 23, 2023
1 parent 0a3bac1 commit cbdc134
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tests/JsonSerializerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,8 @@ public function testUnserializeScalar($scalar, $jsoned)

/**
* List of scalar data
*
* @return array
*/
public function scalarData()
public static function scalarData(): array
{
return array(
array('testing', '"testing"'),
Expand Down Expand Up @@ -156,10 +154,8 @@ public function testUnserializeArrayNoObject($array, $jsoned)

/**
* List of array data
*
* @return array
*/
public function arrayNoObjectData()
public static function arrayNoObjectData(): array
{
return array(
array(array(1, 2, 3), '[1,2,3]'),
Expand Down

0 comments on commit cbdc134

Please sign in to comment.