From 5460acb22a922632c168a0d782d68a4ca01eaba4 Mon Sep 17 00:00:00 2001 From: alexmerlin Date: Tue, 28 Jan 2025 10:11:23 +0200 Subject: [PATCH] Issue #28: Bump Psalm to 6.x Signed-off-by: alexmerlin --- .github/workflows/codecov.yml | 1 + .laminas-ci.json | 3 --- LICENSE | 2 +- README.md | 8 ++++---- composer.json | 6 +++--- docs/book/v3/configuration.md | 6 +++--- docs/book/v3/installation.md | 4 +++- docs/book/v3/overview.md | 2 +- mkdocs.yml | 2 +- 9 files changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 190b4da..7ad749b 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -18,6 +18,7 @@ jobs: - "8.1" - "8.2" - "8.3" + - "8.4" steps: - name: Checkout diff --git a/.laminas-ci.json b/.laminas-ci.json index 82cd446..29216fa 100644 --- a/.laminas-ci.json +++ b/.laminas-ci.json @@ -1,6 +1,3 @@ { - "ignore_php_platform_requirements": { - "8.4": true - }, "backwardCompatibilityCheck": true } diff --git a/LICENSE b/LICENSE index 5b73c90..f5a5fff 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2021 DotKernel +Copyright (c) 2021 Dotkernel Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index d18cbeb..a5a3846 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # dot-response-header ![OSS Lifecycle](https://img.shields.io/osslifecycle/dotkernel/dot-response-header) -![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/dot-response-header/3.4.0) +![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/dot-response-header/3.4.1) [![GitHub issues](https://img.shields.io/github/issues/dotkernel/dot-response-header)](https://github.com/dotkernel/dot-response-header/issues) [![GitHub forks](https://img.shields.io/github/forks/dotkernel/dot-response-header)](https://github.com/dotkernel/dot-response-header/network) @@ -15,11 +15,11 @@ Middleware for setting and overwriting custom response headers. ## Requirements -- PHP >= 8.1 +- **PHP**: 8.1, 8.2, 8.3 or 8.4 ## Installation -Run the following command in your project root directory +Run the following command in your project root directory: ```shell composer require dotkernel/dot-response-header @@ -31,7 +31,7 @@ Next, register the package's `ConfigProvider` to your application config. Dot\ResponseHeader\ConfigProvider::class, ``` -Note: Make sure to register the package under the `// DK packages` section. +> Make sure to register the package under the `// DK packages` section. After registering the package, add it to the middleware stack in `config/pipeline.php` after `$app->pipe(RouteMiddleware::class);` diff --git a/composer.json b/composer.json index 21c59e0..5e6e5b0 100644 --- a/composer.json +++ b/composer.json @@ -1,12 +1,12 @@ { "name": "dotkernel/dot-response-header", "type": "library", - "description": "DotKernel middleware for setting custom response headers.", + "description": "Dotkernel middleware for setting custom response headers.", "license": "MIT", "homepage": "https://github.com/dotkernel/dot-response-header", "authors": [ { - "name": "DotKernel Team", + "name": "Dotkernel Team", "email": "team@dotkernel.com" } ], @@ -28,7 +28,7 @@ "laminas/laminas-coding-standard": "^3.0", "laminas/laminas-diactoros": "^3.1", "phpunit/phpunit": "^10.2", - "vimeo/psalm": "^5.13" + "vimeo/psalm": "^6.0" }, "autoload": { "psr-4": { diff --git a/docs/book/v3/configuration.md b/docs/book/v3/configuration.md index 64c3e9c..29f91b8 100644 --- a/docs/book/v3/configuration.md +++ b/docs/book/v3/configuration.md @@ -2,7 +2,7 @@ ## Requirements -- PHP >= 8.1 +- **PHP**: 8.1, 8.2, 8.3 or 8.4 ## Register ConfigProvider @@ -12,7 +12,7 @@ Next, register the package's `ConfigProvider` to your application config. Dot\ResponseHeader\ConfigProvider::class, ``` -Note : Make sure to register the package under the `// DK packages` section. +> Make sure to register the package under the `// DK packages` section. ## Add the package to the middleware stack @@ -25,7 +25,7 @@ $app->pipe(\Dot\ResponseHeader\Middleware\ResponseHeaderMiddleware::class); ## Add configuration in autoload -Create a new file `response-header.global.php` in `config/autoload` with the below configuration array : +Create a new file `response-header.global.php` in `config/autoload` with the below configuration array: ```php