diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 7f3e4a6..1d88036 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -1,10 +1,8 @@ name: run-tests on: - push: - branches: [main] - pull_request: - branches: [main] + - push + - pull_request jobs: test: @@ -12,17 +10,15 @@ jobs: strategy: fail-fast: true matrix: - os: [ubuntu-latest, windows-latest] - php: [8.2] - laravel: [11.*, 10.*] + os: [ubuntu-latest] + php: [8.3, 8.2] + laravel: ['11.*', '10.*'] stability: [prefer-lowest, prefer-stable] include: - laravel: 11.* testbench: ^9.0 - carbon: ^2.63 - laravel: 10.* testbench: 8.* - carbon: ^2.63 name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }} @@ -44,8 +40,8 @@ jobs: - name: Install dependencies run: | - composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "nesbot/carbon:${{ matrix.carbon }}" --no-interaction --no-update - composer update --${{ matrix.stability }} --prefer-dist --no-interaction + composer require "laravel/framework:${{ matrix.laravel }}" "nesbot/carbon:^2.63" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update + composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-suggest - name: List Installed Dependencies run: composer show -D diff --git a/composer.json b/composer.json index 4056b8f..22dd86c 100644 --- a/composer.json +++ b/composer.json @@ -23,9 +23,9 @@ }, "require-dev": { "laravel/pint": "^1.0", - "nunomaduro/collision": "^7.8", - "nunomaduro/larastan": "^2.0.1", - "orchestra/testbench": "^8.8", + "nunomaduro/collision": "^7.8|^8.0", + "larastan/larastan": "^2.0.1", + "orchestra/testbench": "^8.8|^9.0", "pestphp/pest": "^2.20", "pestphp/pest-plugin-arch": "^2.0", "pestphp/pest-plugin-laravel": "^2.0", diff --git a/phpstan.neon.dist b/phpstan.neon.dist index a91953b..70172cb 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -2,13 +2,23 @@ includes: - phpstan-baseline.neon parameters: - level: 4 paths: - src - - config - - database - tmpDir: build/phpstan - checkOctaneCompatibility: true + + # Level 8 is the highest level + level: 4 + checkModelProperties: true + checkOctaneCompatibility: false checkMissingIterableValueType: false + reportUnmatchedIgnoredErrors: false + noUnnecessaryCollectionCall: true + checkNullables: true + checkGenericClassInNonGenericObjectType: false + treatPhpDocTypesAsCertain: false + + ignoreErrors: + - '#Unsafe usage of new static#' + excludePaths: + - ./*/*/FileToBeExcluded.php