From 59358ec35bff99c8b26bff1e7a5686ec2686df7e Mon Sep 17 00:00:00 2001 From: "J. King" Date: Sat, 30 Apr 2022 17:11:18 -0400 Subject: [PATCH] More PHP 7 fixes --- composer.lock | 2 +- tests/cases/Misc/TestContext.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.lock b/composer.lock index a9fbefc..57bae4a 100644 --- a/composer.lock +++ b/composer.lock @@ -1424,5 +1424,5 @@ "platform-overrides": { "php": "7.1.33" }, - "plugin-api-version": "2.2.0" + "plugin-api-version": "2.3.0" } diff --git a/tests/cases/Misc/TestContext.php b/tests/cases/Misc/TestContext.php index f02f6fa..008d4bf 100644 --- a/tests/cases/Misc/TestContext.php +++ b/tests/cases/Misc/TestContext.php @@ -25,7 +25,7 @@ class TestContext extends \JKingWeb\Arsse\Test\AbstractTest { public function testSetContextOptions(string $method, array $input, $output, bool $not): void { $parent = new Context; $c = ($not) ? $parent->not : $parent; - $default = (new \ReflectionProperty($c, $method))->getDefaultValue(); + $default = (new \ReflectionClass($c))->getDefaultProperties()[$method]; $this->assertFalse($c->$method(), "Context method did not initially return false"); if (in_array($method, $this->ranges)) { $this->assertEquals([null, null], $c->$method, "Context property is not initially a two-member falsy array");