Skip to content

Commit

Permalink
Merge pull request #1 from upmind/php-versions
Browse files Browse the repository at this point in the history
Allow PHP 7.4
  • Loading branch information
uphlewis authored Jan 16, 2025
2 parents 346c961 + 06581a6 commit 19927a8
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 12 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/run-static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [8.1, 8.2, 8.3, 8.4]
laravel: [9.*, 10.*, 11.*]
php: [7.4, 8.0]
laravel: [8.*]
dependency-version: [prefer-stable]
exclude:
- laravel: 11.*
Expand All @@ -44,7 +44,6 @@ jobs:

- name: Install dependencies
run: |
composer remove phpro/grumphp --no-update --dev
composer require "laravel/framework:${{ matrix.laravel }}" --no-update --no-progress
composer update --${{ matrix.dependency-version }} --prefer-dist --no-progress
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [8.1, 8.2, 8.3, 8.4]
laravel: ['9.*', '10.*', '11.*']
php: [7.4, 8.0]
laravel: ['8.*']
dependency-version: [prefer-lowest, prefer-stable]
exclude:
- laravel: 11.*
Expand Down
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@
}
],
"require": {
"php": "^8.1",
"php": "7.4.* | 8.0.*",
"dompdf/dompdf": "^3.0",
"illuminate/support": "^9|^10|^11"
"illuminate/support": "^8|^9|^10|^11"
},
"require-dev": {
"orchestra/testbench": "^7|^8|^9",
"orchestra/testbench": "^6|^7|^8|^9",
"squizlabs/php_codesniffer": "^3.5",
"phpro/grumphp": "^2.5",
"larastan/larastan": "^2.7.0"
"phpstan/phpstan": "^2.1"

},
"autoload": {
"psr-4": {
Expand Down Expand Up @@ -52,7 +52,7 @@
"test": "phpunit",
"check-style": "phpcs -p --standard=psr12 src/",
"fix-style": "phpcbf -p --standard=psr12 src/",
"phpstan": "phpstan analyze --memory-limit=-1"
"phpstan": "./vendor/bin/phpstan analyze --memory-limit=-1"
},
"minimum-stability": "dev",
"prefer-stable": true,
Expand Down
5 changes: 4 additions & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
includes:
- vendor/larastan/larastan/extension.neon

parameters:
reportUnmatchedIgnoredErrors: false
Expand All @@ -11,3 +10,7 @@ parameters:
# This is a global alias that cannot be detected by Larastan.
- '#Call to static method loadHTML\(\) on an unknown class PDF\.#'
- '#Call to static method loadHTML\(\) on an unknown class Pdf\.#'
- '#Class Barryvdh\\DomPDF\\PDF has PHPDoc tag @method for method \S+\(\) parameter \#\d \$\S+ with no value type specified in iterable type array\.#'
- '#Class Barryvdh\\DomPDF\\PDF has PHPDoc tag @method for method \S+\(\) return type with no value type specified in iterable type array\.#'
- '#Class Barryvdh\\DomPDF\\Facade\\Pdf has PHPDoc tag @method for method \S+\(\) parameter \#\d \$\S+ with no value type specified in iterable type array\.#'
- '#Call to an undefined static method Illuminate\\Support\\Facades\\View::addLocation\(\)\.#'

0 comments on commit 19927a8

Please sign in to comment.