diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index ccf0035..11f2534 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -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: diff --git a/.gitignore b/.gitignore index d78c3c9..5ab8b12 100644 --- a/.gitignore +++ b/.gitignore @@ -7,4 +7,5 @@ composer.lock node_modules .phpunit.cache coverage -build \ No newline at end of file +build +.DS_Store diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon new file mode 100644 index 0000000..e685aad --- /dev/null +++ b/phpstan-baseline.neon @@ -0,0 +1,6 @@ +parameters: + ignoreErrors: + - + message: "#^Property Riverwaysoft\\\\PhpConverter\\\\Cli\\\\ConvertCommand\\:\\:\\$defaultName has no type specified\\.$#" + count: 1 + path: src/Cli/ConvertCommand.php diff --git a/phpstan-baseline.neon.php b/phpstan-baseline.neon.php new file mode 100644 index 0000000..2a87778 --- /dev/null +++ b/phpstan-baseline.neon.php @@ -0,0 +1,11 @@ += 80200) { + $includes[] = __DIR__ . '/phpstan-baseline.neon'; +} +$config = []; +$config['includes'] = $includes; + +return $config; \ No newline at end of file diff --git a/phpstan.neon b/phpstan.neon index 8cb6e09..438a397 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -1,3 +1,6 @@ +includes: + - phpstan-baseline.neon.php + parameters: level: 6 checkGenericClassInNonGenericObjectType: false