Skip to content

Commit

Permalink
Merge pull request #264 from boesing/qa/remove-php-8.0
Browse files Browse the repository at this point in the history
Remove PHP 8.0 support
  • Loading branch information
boesing committed Jul 17, 2023
2 parents 970b4a9 + d91638e commit 1e687c0
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 40 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"process-timeout": 600,
"sort-packages": true,
"platform": {
"php": "8.0.99"
"php": "8.1.99"
},
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
Expand All @@ -34,10 +34,10 @@
}
},
"require": {
"php": "~8.0.0 || ~8.1.0 || ~8.2.0",
"php": "~8.1.0 || ~8.2.0",
"laminas/laminas-cache-storage-implementation": "1.0",
"laminas/laminas-eventmanager": "^3.4",
"laminas/laminas-servicemanager": "^3.18.0",
"laminas/laminas-servicemanager": "^3.21",
"laminas/laminas-stdlib": "^3.6",
"psr/cache": "^1.0",
"psr/simple-cache": "^1.0",
Expand Down
61 changes: 31 additions & 30 deletions composer.lock

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

1 change: 0 additions & 1 deletion test/Psr/SimpleCache/SimpleCacheDecoratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ private function mockCapabilities(
public function setSuccessReference(SimpleCacheDecorator $cache, bool $success): void
{
$r = new ReflectionProperty($cache, 'success');
$r->setAccessible(true);
$r->setValue($cache, $success);
}

Expand Down
5 changes: 1 addition & 4 deletions test/Storage/Adapter/AbstractAdapterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,7 @@ public function testInternalTriggerPre(): void
]);

// call protected method
$method = new ReflectionMethod($storage::class, 'triggerPre');
$method->setAccessible(true);
$method = new ReflectionMethod($storage::class, 'triggerPre');
$rsCollection = $method->invoke($storage, 'setItem', $params);
self::assertInstanceOf(ResponseCollection::class, $rsCollection);

Expand Down Expand Up @@ -192,7 +191,6 @@ public function testInternalTriggerPost(): void

// call protected method
$method = new ReflectionMethod($storage::class, 'triggerPost');
$method->setAccessible(true);
$result = $method->invokeArgs($storage, ['setItem', $params, &$result]);

// test called event
Expand Down Expand Up @@ -225,7 +223,6 @@ public function testInternalTriggerExceptionThrowRuntimeException(): void

// call protected method
$method = new ReflectionMethod($storage::class, 'triggerException');
$method->setAccessible(true);

$this->expectException(RuntimeException::class);
$this->expectExceptionMessage('test');
Expand Down
2 changes: 1 addition & 1 deletion test/Storage/AdapterPluginManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function testPluginAliasesResolve(string $alias, string $expected)
$this->addToAssertionCount(1);
}

protected function getPluginManager(): AdapterPluginManager
protected static function getPluginManager(): AdapterPluginManager
{
return new AdapterPluginManager(new ServiceManager());
}
Expand Down
2 changes: 1 addition & 1 deletion test/Storage/PluginManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class PluginManagerTest extends TestCase
{
use CommonPluginManagerTrait;

protected function getPluginManager(): PluginManager
protected static function getPluginManager(): PluginManager
{
return new PluginManager(new ServiceManager());
}
Expand Down

0 comments on commit 1e687c0

Please sign in to comment.