Skip to content

Commit

Permalink
fixup! Extend test coverage to PHP 8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
gogowitsch committed Aug 29, 2024
1 parent 02266a6 commit 100c2b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/methods/ParseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ protected function _get_magazines_data() {
/**
* @return array
*/
public function autoQuotesDataProvider(): array {
public static function autoQuotesDataProvider(): array {
return array(
array('auto-double-enclosure.csv', '"'),
array('auto-single-enclosure.csv', "'"),
Expand Down Expand Up @@ -326,7 +326,7 @@ public function testAutoQuotes($file, $enclosure) {
* @return mixed Method return.
*/
private function invokeMethod($object, $methodName, $parameters = []) {
$reflection = new ReflectionClass($object::class);
$reflection = new ReflectionClass(get_class($object));
$method = $reflection->getMethod($methodName);
$method->setAccessible(true);

Expand Down
2 changes: 1 addition & 1 deletion tests/properties/OffsetTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function testOffsetOfOne() {
$this->assertEquals($expected, $actual);
}

public function numberRangeZeroToFourProvider() {
public static function numberRangeZeroToFourProvider() {
return array_map(function ($number) {
return [$number];
}, range(0, 4));
Expand Down

0 comments on commit 100c2b3

Please sign in to comment.