Skip to content

Commit

Permalink
Drop PHP 7.4 support (#28)
Browse files Browse the repository at this point in the history
- test on v8.1
  • Loading branch information
simPod committed Feb 23, 2022
1 parent ad34635 commit 49714da
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Expand Up @@ -15,13 +15,13 @@ jobs:
strategy:
matrix:
php-version:
- "7.4"
- "8.0"
- "8.1"
dependencies:
- "highest"
include:
- dependencies: "lowest"
php-version: "7.4"
php-version: "8.0"

steps:
- name: "Checkout"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/coding-standards.yaml
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: "7.4"
php-version: "8.0"
coverage: "none"
tools: "cs2pr, pecl"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/infection.yaml
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: "7.4"
php-version: "8.0"
coverage: "pcov"

- name: "Install dependencies with Composer"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/static-analysis.yaml
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: "7.4"
php-version: "8.0"
coverage: "none"
tools: "cs2pr, pecl"

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -15,7 +15,7 @@
}
},
"require": {
"php": "^7.4 || ^8.0",
"php": "^8.0",
"cdn77/entity-fqn-extractor": "^0.1.0 || ^0.2.0",
"phpunit/phpunit": "^9.2",
"thecodingmachine/safe": "^1.0.2"
Expand Down
2 changes: 2 additions & 0 deletions phpcs.xml.dist
Expand Up @@ -5,6 +5,8 @@
>
<arg name="cache" value=".phpcs-cache" />

<config name="php_version" value="80000"/>

<rule ref="Cdn77" />

<file>src/</file>
Expand Down
2 changes: 2 additions & 0 deletions src/Stub.php
Expand Up @@ -51,6 +51,8 @@ public static function create(string $class, array $properties = []) : object
*/
public static function extend(object $stub, array $newProperties = []) : object
{
// phpstan has problem with analyzing this still
// phpcs:ignore SlevomatCodingStandard.Classes.ModernClassNameReference.ClassNameReferencedViaFunctionCall
$class = get_class($stub);
$reflection = new ReflectionClass($class);

Expand Down

0 comments on commit 49714da

Please sign in to comment.