Skip to content

Commit

Permalink
php 8.4 support
Browse files Browse the repository at this point in the history
- added php 8.4 support
- dropped usage of psalm due to lack of progress in their developments
  • Loading branch information
wickedOne committed Nov 22, 2024
1 parent 4444965 commit 5b71b73
Show file tree
Hide file tree
Showing 3 changed files with 145 additions and 1,383 deletions.
38 changes: 4 additions & 34 deletions .github/workflows/continuous-integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -122,40 +122,6 @@ jobs:
- name: "phpstan"
run: "vendor/bin/phpstan analyse --memory-limit=-1 --error-format=checkstyle | cs2pr"

static-analysis-psalm:
name: "static analysis psalm"

runs-on: ${{ matrix.operating-system }}

strategy:
matrix:
dependencies:
- "locked"
php-version:
- "8.2"
- "8.3"
operating-system:
- "ubuntu-latest"

steps:
- name: "Checkout"
uses: "actions/checkout@v4"

- name: "Install PHP"
uses: "shivammathur/[email protected]"
with:
coverage: "none"
php-version: "${{ matrix.php-version }}"
ini-values: memory_limit=-1

- name: "Install dependencies"
uses: "ramsey/[email protected]"
with:
dependency-versions: "${{ matrix.dependencies }}"

- name: "psalm"
run: "vendor/bin/psalm --shepherd --stats"

coding-standards:
name: "php cs fixer"

Expand All @@ -167,6 +133,8 @@ jobs:
- "locked"
php-version:
- "8.2"
- "8.3"
- "8.4"
operating-system:
- "ubuntu-latest"

Expand All @@ -188,4 +156,6 @@ jobs:
dependency-versions: "${{ matrix.dependencies }}"

- name: "php cs fixer dry run"
env:
PHP_CS_FIXER_IGNORE_ENV: 1
run: "php-cs-fixer fix --dry-run --format=checkstyle | cs2pr"
5 changes: 2 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
],
"minimum-stability": "stable",
"require": {
"php": "~8.2.0 || ~8.3.0",
"php": "~8.2.0 || ~8.3.0 || ~8.4.0",
"psr/cache": "^3.0",
"psr/event-dispatcher": "^1.0",
"symfony/event-dispatcher-contracts": "^3.5.0",
Expand All @@ -35,8 +35,7 @@
"phpstan/phpstan-deprecation-rules": "^2.0",
"phpstan/phpstan-phpunit": "^2.0.1",
"phpunit/phpunit": "^11.4.3",
"roave/security-advisories": "dev-latest",
"vimeo/psalm": "dev-master"
"roave/security-advisories": "dev-latest"
},
"config": {
"sort-packages": true,
Expand Down
Loading

0 comments on commit 5b71b73

Please sign in to comment.