Skip to content

Commit 00bd8dc

Browse files
authored
Merge pull request #82 from wunderio/feature/#79-Change-the-default-PHP-code-checker-version-to-8.0
Feature/#79 change the default php code checker version to 8.0
2 parents 85a8935 + 8199e2a commit 00bd8dc

File tree

6 files changed

+9
-8
lines changed

6 files changed

+9
-8
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ jobs:
33
# Install all dependencies and run check tasks.
44
build_and_test:
55
docker:
6-
- image: circleci/php:7.4-cli-node
6+
- image: circleci/php:8.0-cli-node
77
steps:
88
# Check out source code.
99
- checkout

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ its [documentation](https://github.com/phpro/grumphp/blob/master/README.md#confi
1313

1414
## Checks performed
1515

16-
This repository currently has following checks:
16+
This repository currently has the following checks:
1717

1818
* Shell script exec bits - [check_file_permissions](src/Task/CheckFilePermissions/README.md)
1919
* PHP Drupal CS and PHP Code security - [phpcs](src/Task/Phpcs/README.md)
20-
* PHP 7.3 Compatibility - [php_compatibility](src/Task/PhpCompatibility/README.md)
20+
* PHP 8.0 Compatibility - [php_compatibility](src/Task/PhpCompatibility/README.md)
2121
* PHP syntax - [php_check_syntax](src/Task/PhpCheckSyntax/README.md)
2222
* Cognitive complexity and other ecs sniffs - [ecs](src/Task/Ecs/README.md)
2323
* Yaml syntax - [yaml_lint](src/Task/YamlLint/README.md)

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@
4545
"mglaman/phpstan-drupal": "^1.1",
4646
"phpstan/phpstan-deprecation-rules": "^1.0",
4747
"vimeo/psalm": "^4",
48-
"nette/finder": "^2.5"
48+
"nette/finder": "^2.5",
49+
"symfony/finder": "^4.4"
4950
},
5051
"autoload": {
5152
"psr-4": {

src/Task/PhpCompatibility/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ Check if files are compatible with X version of PHP.
77
parameters:
88
tasks:
99
php_compatibility:
10-
ignore_patterns:
10+
ignore_patterns:
1111
- '/vendor/'
1212
- '/node_modules/'
1313
- '/core/'
1414
- '/libraries/'
1515
extensions: ['php', 'inc', 'module', 'install', 'theme']
1616
run_on: ['.']
17-
testVersion: '7.3'
17+
testVersion: '8.0'
1818
standard: 'PHPCompatibility'
1919
parallel: 20
2020
extensions:

src/Task/tasks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ Wunderio\GrumPHP\Task\PhpCompatibility\PhpCompatibilityTask:
9999
defaults: ['.']
100100
allowed_types: ['array']
101101
testVersion:
102-
defaults: '7.3'
102+
defaults: '8.0'
103103
allowed_types: ['string']
104104
standard:
105105
defaults: 'PHPCompatibility'

tests/PhpCompatibility/PhpCompatibilityTaskTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function testBuildsProcessArguments(): void {
4747
$stub->method('getConfig')->willReturn($taskConfig);
4848
$taskConfig->method('getOptions')->willReturn([
4949
'standard' => 'php-compatibility.xm',
50-
'testVersion' => '7.3',
50+
'testVersion' => '8.0',
5151
'extensions' => ['php'],
5252
'run_on' => ['.'],
5353
'ignore_patterns' => ['/vendor/'],

0 commit comments

Comments
 (0)