Skip to content

Commit

Permalink
Add PHP 8.2 to the build matrix (#119)
Browse files Browse the repository at this point in the history
* PHP 8.2
  • Loading branch information
kubk authored Apr 19, 2024
1 parent 8823846 commit 7840d75
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

strategy:
matrix:
php-versions: ['8.0', '8.1']
php-versions: ['8.0', '8.1', '8.2']
name: PHP ${{ matrix.php-versions }} Test on ubuntu latest

steps:
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ composer.lock
node_modules
.phpunit.cache
coverage
build
build
.DS_Store
6 changes: 6 additions & 0 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
parameters:
ignoreErrors:
-
message: "#^Property Riverwaysoft\\\\PhpConverter\\\\Cli\\\\ConvertCommand\\:\\:\\$defaultName has no type specified\\.$#"
count: 1
path: src/Cli/ConvertCommand.php
11 changes: 11 additions & 0 deletions phpstan-baseline.neon.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php declare(strict_types = 1);

// https://github.com/phpstan/phpstan/discussions/6604#discussioncomment-2133932
$includes = [];
if (PHP_VERSION_ID >= 80200) {
$includes[] = __DIR__ . '/phpstan-baseline.neon';
}
$config = [];
$config['includes'] = $includes;

return $config;
3 changes: 3 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
includes:
- phpstan-baseline.neon.php

parameters:
level: 6
checkGenericClassInNonGenericObjectType: false
Expand Down

0 comments on commit 7840d75

Please sign in to comment.