Skip to content

Commit

Permalink
Merge pull request #84 from mezzio/renovate/php
Browse files Browse the repository at this point in the history
Update dependency php to ~8.1.0 || ~8.2.0 || ~8.3.0
  • Loading branch information
Xerkus committed Jan 8, 2024
2 parents c839a81 + e9a7f71 commit f708d13
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 20 deletions.
3 changes: 0 additions & 3 deletions .laminas-ci.json
@@ -1,5 +1,2 @@
{
"ignore_php_platform_requirements": {
"8.2": true
}
}
4 changes: 2 additions & 2 deletions composer.json
Expand Up @@ -26,7 +26,7 @@
"config": {
"sort-packages": true,
"platform": {
"php": "8.0.99"
"php": "8.1.99"
},
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
Expand All @@ -38,7 +38,7 @@
}
},
"require": {
"php": "~8.0.0 || ~8.1.0 || ~8.2.0",
"php": "~8.1.0 || ~8.2.0 || ~8.3.0",
"ext-dom": "*",
"ext-json": "*",
"psr/container": "^1.1.2 || ^2.0.2",
Expand Down
6 changes: 3 additions & 3 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions psalm-baseline.xml
Expand Up @@ -759,9 +759,6 @@
)
)]]></code>
</InternalClass>
<MixedAssignment>
<code>$value</code>
</MixedAssignment>
<MixedOperand>
<code>$value</code>
</MixedOperand>
Expand Down
2 changes: 1 addition & 1 deletion test/HalResponseFactoryFactoryTest.php
Expand Up @@ -26,7 +26,7 @@ class HalResponseFactoryFactoryTest extends TestCase
public static function assertResponseFactoryReturns(ResponseInterface $expected, HalResponseFactory $factory): void
{
$r = new ReflectionProperty($factory, 'responseFactory');
$r->setAccessible(true);

$responseFactory = $r->getValue($factory);

self::assertInstanceOf(CallableResponseFactoryDecorator::class, $responseFactory);
Expand Down
1 change: 0 additions & 1 deletion test/LinkGenerator/MezzioUrlGeneratorTest.php
Expand Up @@ -92,7 +92,6 @@ public function testCanGenerateFullyQualifiedURIWhenServerUrlHelperIsComposed():
// The helper should be cloned on each invocation, ensuring that the URI
// is not persisted.
$reflectionProperty = new ReflectionProperty($serverUrlHelper, 'uri');
$reflectionProperty->setAccessible(true);
self::assertNull($reflectionProperty->getValue($serverUrlHelper));
}
}
2 changes: 0 additions & 2 deletions test/Metadata/MetadataMapFactoryTest.php
Expand Up @@ -43,7 +43,6 @@ public function testFactoryReturnsEmptyMetadataMapWhenNoConfigServicePresent():
$metadataMap = ($this->factory)($this->container);

$r = new ReflectionProperty($metadataMap, 'map');
$r->setAccessible(true);
self::assertSame([], $r->getValue($metadataMap));
}

Expand All @@ -54,7 +53,6 @@ public function testFactoryReturnsEmptyMetadataMapWhenConfigServiceHasNoMetadata
$metadataMap = ($this->factory)($this->container);

$r = new ReflectionProperty($metadataMap, 'map');
$r->setAccessible(true);
self::assertSame([], $r->getValue($metadataMap));
}

Expand Down
6 changes: 1 addition & 5 deletions test/PHPUnitDeprecatedAssertions.php
Expand Up @@ -227,11 +227,7 @@ public static function getObjectAttribute($object, string $attributeName)
return $object->$attributeName;
}

$attribute->setAccessible(true);
$value = $attribute->getValue($object);
$attribute->setAccessible(false);

return $value;
return $attribute->getValue($object);
} catch (ReflectionException $e) {
}
} while ($reflector = $reflector->getParentClass());
Expand Down

0 comments on commit f708d13

Please sign in to comment.