Skip to content

Commit

Permalink
Merge pull request #461 from jakzal/php-8.2
Browse files Browse the repository at this point in the history
Enable PHP 8.2 support
  • Loading branch information
jakzal authored Dec 12, 2022
2 parents 3350a68 + 5ecf053 commit d0f9ea3
Show file tree
Hide file tree
Showing 8 changed files with 94 additions and 93 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
name: Build and test
strategy:
matrix:
php: [7.4, 8.0, 8.1]
php: [7.4, 8.0, 8.1, 8.2]
deps: [high]
include:
- php: 7.4
Expand Down Expand Up @@ -59,7 +59,7 @@ jobs:
needs: tests
strategy:
matrix:
php: [7.4, 8.0, 8.1]
php: [7.4, 8.0, 8.1, 8.2]

steps:
- uses: actions/checkout@v3
Expand Down
160 changes: 80 additions & 80 deletions README.md

Large diffs are not rendered by default.

9 changes: 5 additions & 4 deletions bin/devkit.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,19 +73,20 @@ protected function execute(InputInterface $input, OutputInterface $output)
$readmePath = $input->getOption('readme');
$tools = $this->loadTools($jsonPath);

$toolsList = '| Name | Description | PHP 7.4 | PHP 8.0 | PHP 8.1' . PHP_EOL;
$toolsList .= '| :--- | :---------- | :------ | :------ | :------' . PHP_EOL;
$toolsList = '| Name | Description | PHP 7.4 | PHP 8.0 | PHP 8.1 | PHP 8.2' . PHP_EOL;
$toolsList .= '| :--- | :---------- | :------ | :------ | :------ | :------' . PHP_EOL;
$toolsList .= $tools->sort(function (Tool $left, Tool $right) {
return strcasecmp($left->name(), $right->name());
})->reduce('', function ($acc, Tool $tool) {

return $acc . sprintf('| %s | [%s](%s) | %s | %s | %s |',
return $acc . sprintf('| %s | [%s](%s) | %s | %s | %s | %s |',
$tool->name(),
$tool->summary(),
$tool->website(),
in_array('exclude-php:7.4', $tool->tags(), true) ? '❌' : '✅' ,
in_array('exclude-php:8.0', $tool->tags(), true) ? '❌' : '✅',
in_array('exclude-php:8.1', $tool->tags(), true) ? '❌' : '✅'
in_array('exclude-php:8.1', $tool->tags(), true) ? '❌' : '✅',
in_array('exclude-php:8.2', $tool->tags(), true) ? '❌' : '✅'
) . PHP_EOL;
});

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Helps to discover and install tools",
"type": "project",
"require": {
"php": "^7.4.7 || ~8.0.0 || ~8.1.0",
"php": "^7.4.7 || ~8.0.0 || ~8.1.0 || ~8.2.0",
"symfony/console": "^4.4 || ^5.4 || ^6.1",
"psr/container": "^1.0"
},
Expand Down
2 changes: 1 addition & 1 deletion resources/architecture.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
}
},
"test": "phpda list",
"tags": ["exclude-php:8.1", "featured", "architecture"]
"tags": ["exclude-php:8.2", "exclude-php:8.1", "featured", "architecture"]
}
]
}
2 changes: 1 addition & 1 deletion resources/checkstyle.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
}
},
"test": "php-cs-fixer list",
"tags": ["featured", "checkstyle"]
"tags": ["exclude-php:8.2", "featured", "checkstyle"]
},
{
"name": "phpcbf",
Expand Down
2 changes: 1 addition & 1 deletion resources/metrics.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
}
},
"test": "analyze list",
"tags": ["exclude-php:8.1", "exclude-php:8.0", "metrics"]
"tags": ["exclude-php:8.2", "exclude-php:8.1", "exclude-php:8.0", "metrics"]
},
{
"name": "phpinsights",
Expand Down
6 changes: 3 additions & 3 deletions resources/test.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
}
},
"test": "phpspec --version",
"tags": ["featured", "test"]
"tags": ["exclude-php:8.2", "featured", "test"]
},
{
"name": "phpunit",
Expand Down Expand Up @@ -134,7 +134,7 @@
}
},
"test": "phpunit-7 --version",
"tags": ["exclude-php:8.1", "exclude-php:8.0", "test"]
"tags": ["exclude-php:8.2", "exclude-php:8.1", "exclude-php:8.0", "test"]
},
{
"name": "phpunit-5",
Expand All @@ -148,7 +148,7 @@
}
},
"test": "phpunit-5 --version",
"tags": ["exclude-php:8.1", "exclude-php:8.0", "test"]
"tags": ["exclude-php:8.2", "exclude-php:8.1", "exclude-php:8.0", "test"]
},
{
"name": "simple-phpunit",
Expand Down

0 comments on commit d0f9ea3

Please sign in to comment.