Skip to content

Commit

Permalink
Merge pull request #84 from sasezaki/php84
Browse files Browse the repository at this point in the history
Add support for PHP 8.4
  • Loading branch information
sasezaki authored Sep 25, 2024
2 parents 5581dd1 + eedd648 commit c10f020
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
7 changes: 5 additions & 2 deletions .laminas-ci.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,8 @@
"command": "diff <(./vendor/bin/phpstan analyse -c ./example/phpstan.neon --no-progress --error-format=junit | xmllint --format -) ./test/example.output"
}
}
]
}
],
"ignore_php_platform_requirements": {
"8.4": true
}
}
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ parameters:
This extension depends on our psr/log stub to serve strictness.

* eg.
* `@param LogLevel::* $level` at `log()` method
* `@param array{exception?: \Throwable} $context`
* `@param LogLevel::* $level` at `log()` method
* `@param array{exception?: \Throwable} $context`

See [psr/log stub](https://github.com/struggle-for-php/sfp-stubs-psr-log) repository page to get more detail.

Expand Down Expand Up @@ -113,7 +113,7 @@ $logger->info('user {user_id} gets an error {error} .', ['user_id' => $user_id])
| sfpPsrLog.contextKeyOriginalPattern |

* reports when context key is not matched you defined pattern.
* if `contextKeyOriginalPattern` parameter is not set, this check would be ignored.
* if `contextKeyOriginalPattern` parameter is not set, this check would be ignored.

#### Configuration

Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@
"MIT"
],
"require": {
"php": "^7.2.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0",
"phpstan/phpstan": "^1.11",
"php": "^7.2.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0",
"phpstan/phpstan": "^1.12",
"struggle-for-php/sfp-stubs-psr-log": "^1.0.1 || ^2 || ^3.0.1"
},
"require-dev": {
"laminas/laminas-coding-standard": "^2.0.0",
"maglnet/composer-require-checker": "^2|^3|^4",
"phpstan/phpstan-phpunit": "^1.3",
"phpstan/phpstan-strict-rules": "^1.5",
"phpunit/phpunit": "^8.5.31 || ^9.5.10",
"phpunit/phpunit": "^8.5.31 || ^9.5.10 || ^10.5.35",
"roave/security-advisories": "dev-master",
"squizlabs/php_codesniffer": "^3.7",
"vimeo/psalm": "^4 || ^5.9"
"vimeo/psalm": "^4 || ^5.26"
},
"conflict": {
"nikic/php-parser": "<4.13.0"
Expand Down

0 comments on commit c10f020

Please sign in to comment.