Skip to content

Commit 0d7e8c6

Browse files
authored
Merge pull request #25 from spryker-sdk/feature/frw-8801/master-php-upgrade-and-drop-81
FRW-8801 Dropped PHP 8.0 support.
2 parents 90c2bfe + c526c09 commit 0d7e8c6

File tree

4 files changed

+11
-7
lines changed

4 files changed

+11
-7
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
strategy:
1212
fail-fast: false
1313
matrix:
14-
php-version: [ '8.1', '8.2' ]
14+
php-version: [ '8.2', '8.3' ]
1515
steps:
1616
- name: Checkout
1717
uses: actions/checkout@v2
@@ -54,7 +54,7 @@ jobs:
5454
strategy:
5555
fail-fast: false
5656
matrix:
57-
php-version: [ '8.0' ]
57+
php-version: [ '8.1' ]
5858

5959
steps:
6060
- name: Checkout

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Spryker PHPStan Extensions
22
[![Build Status](https://github.com/spryker-sdk/phpstan-spryker/workflows/CI/badge.svg?branch=master)](https://github.com/spryker-sdk/phpstan-spryker/actions?query=workflow%3ACI+branch%3Amaster)
3-
[![Minimum PHP Version](http://img.shields.io/badge/php-%3E%3D%208.0-8892BF.svg)](https://php.net/)
3+
[![Minimum PHP Version](http://img.shields.io/badge/php-%3E%3D%208.1-8892BF.svg)](https://php.net/)
44
[![License](https://poser.pugx.org/spryker/code-sniffer/license.svg)](https://packagist.org/packages/spryker-sdk/phpstan-spryker)
55

66
* [PHPStan](https://github.com/phpstan/phpstan)

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
}
1515
],
1616
"require": {
17-
"php": ">=8.0",
17+
"php": ">=8.1",
1818
"phpunit/phpunit": "^9.5",
1919
"phpstan/phpstan": "^1.0.0"
2020
},

tests/Type/Spryker/DynamicMethodMissingTypeExtensionTest.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
namespace SprykerSdk\PHPStanSpryker\Test\Rules\Spryker;
99

1010
use PHPStan\Cache\Cache;
11+
use PHPStan\Cache\CacheStorage;
1112
use PHPStan\Reflection\Annotations\AnnotationsMethodsClassReflectionExtension;
1213
use SprykerSdk\PHPStanSpryker\Type\Spryker\DynamicMethodMissingTypeExtension;
1314
use PHPUnit\Framework\TestCase;
@@ -19,9 +20,12 @@ class DynamicMethodMissingTypeExtensionTest extends TestCase
1920
*/
2021
public function testInstance(): void
2122
{
22-
$extension = $this->getMockBuilder(AnnotationsMethodsClassReflectionExtension::class)->disableOriginalConstructor()->getMock();
23-
$cache = $this->getMockBuilder(Cache::class)->disableOriginalConstructor()->getMock();
24-
$instance = new DynamicMethodMissingTypeExtension($extension, $cache, 'test', []);
23+
$instance = new DynamicMethodMissingTypeExtension(
24+
new AnnotationsMethodsClassReflectionExtension(),
25+
new Cache($this->createMock(CacheStorage::class)),
26+
'test',
27+
[]
28+
);
2529
$this->assertInstanceOf(DynamicMethodMissingTypeExtension::class, $instance);
2630
}
2731
}

0 commit comments

Comments
 (0)