Skip to content

Commit 8ca1d11

Browse files
committed
FRW-8773 Increased min php required ver to support php unit 11
2 parents d82267f + db44d3c commit 8ca1d11

File tree

5 files changed

+24
-7
lines changed

5 files changed

+24
-7
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
## PR Description
2+
Add a meaningful description here that will let us know what you want to fix with this PR or what functionality you want to add.
3+
4+
## Steps before you submit a PR
5+
- Please add tests for the code you add if it's possible.
6+
- Please check out our contribution guide: https://docs.spryker.com/docs/dg/dev/code-contribution-guide.html
7+
- Add a `contribution-license-agreement.txt` file with the following content:
8+
`I hereby agree to Spryker\'s Contribution License Agreement in https://github.com/spryker-sdk/phpstan-spryker/blob/HASH_OF_COMMIT_YOU_ARE_BASING_YOUR_BRANCH_FROM_MASTER_BRANCH/CONTRIBUTING.md.`
9+
10+
This is a mandatory step to make sure you are aware of the license agreement and agree to it. `HASH_OF_COMMIT_YOU_ARE_BASING_YOUR_BRANCH_FROM_MASTER_BRANCH` is a hash of the commit you are basing your branch from the master branch. You can take it from commits list of master branch before you submit a PR.
11+
12+
## Checklist
13+
- [x] I agree with the Code Contribution License Agreement in CONTRIBUTING.md

.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.2",
1818
"phpunit/phpunit": "^11.4.0",
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)