Skip to content

Commit efdde22

Browse files
committed
Require PHP 8.4+
1 parent 10ff0d8 commit efdde22

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+865
-1402
lines changed

.github/workflows/code-style.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
uses: shivammathur/setup-php@v2
1515
with:
1616
coverage: none
17-
php-version: "8.3"
17+
php-version: "8.4"
1818
ini-values: memory_limit=-1
1919
tools: phpcs, cs2pr
2020
- name: Run PHP Code Sniffer

.github/workflows/static-analysis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: Install PHP
1515
uses: shivammathur/setup-php@v2
1616
with:
17-
php-version: "8.3"
17+
php-version: "8.4"
1818
ini-values: memory_limit=-1
1919
tools: composer:v2
2020
- name: Cache dependencies

.github/workflows/test.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ jobs:
1111
strategy:
1212
matrix:
1313
php-version:
14-
- "8.2"
15-
- "8.3"
1614
- "8.4"
1715
steps:
1816
- name: Checkout
@@ -41,7 +39,7 @@ jobs:
4139
run: make test-coveralls
4240

4341
- name: Upload code coverage
44-
if: ${{ matrix.php-version == '8.3' }}
42+
if: ${{ matrix.php-version == '8.4' }}
4543
env:
4644
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4745
run: |

CHANGELOG.md

+24
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,29 @@
11
# CHANGELOG
22

3+
## v7.0
4+
5+
### New Requirements
6+
7+
PHP 8.4+
8+
9+
### New features
10+
11+
None
12+
13+
### Deprecated Features
14+
15+
None
16+
17+
### Backward Incompatible Changes
18+
19+
None
20+
21+
### Other changes
22+
23+
None
24+
25+
26+
327
## v4.x to v6.0
428

529
### New requirements

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG PHP_VERSION=8.2
1+
ARG PHP_VERSION=8.4
22
FROM php:${PHP_VERSION}-cli-bookworm
33

44
RUN <<-EOF

Makefile

+1-11
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,7 @@ test-cleanup:
3131
@rm -rf tests/sandbox/*
3232

3333
.PHONY: test-container
34-
test-container: test-container-82
35-
36-
.PHONY: test-container-82
37-
test-container-82:
38-
@-docker-compose run --rm app82 bash
39-
@docker-compose down -v
40-
41-
.PHONY: test-container-83
42-
test-container-83:
43-
@-docker-compose run --rm app83 bash
44-
@docker-compose down -v
34+
test-container: test-container-84
4535

4636
.PHONY: test-container-84
4737
test-container-84:

composer.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "icanboogie/http",
33
"type": "library",
4-
"version": "6.0",
4+
"version": "7.0",
55
"description": "Provides an API to handle HTTP requests.",
66
"keywords": [
77
"http",
@@ -29,17 +29,17 @@
2929
"minimum-stability": "dev",
3030
"prefer-stable": true,
3131
"require": {
32-
"php": ">=8.2",
32+
"php": ">=8.4",
3333
"ext-mbstring": "*",
3434
"icanboogie/accessor": "^6.0",
35-
"icanboogie/event": "^6.0"
35+
"icanboogie/event": "^7.0"
3636
},
3737
"require-dev": {
3838
"ext-fileinfo": "*",
3939
"ext-gd": "*",
4040
"icanboogie/datetime": "^3.0",
41-
"phpstan/phpstan": "^2.0",
42-
"phpunit/phpunit": "^11.4"
41+
"phpstan/phpstan": "^2.1",
42+
"phpunit/phpunit": "11.4.4"
4343
},
4444
"autoload": {
4545
"psr-4": {

docker-compose.yaml

+1-23
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,10 @@
11
---
22
services:
3-
app82:
4-
build:
5-
context: .
6-
args:
7-
PHP_VERSION: "8.2"
8-
environment:
9-
PHP_IDE_CONFIG: 'serverName=icanboogie-http'
10-
volumes:
11-
- .:/app:delegated
12-
- ~/.composer:/root/.composer:delegated
13-
working_dir: /app
14-
app83:
15-
build:
16-
context: .
17-
args:
18-
PHP_VERSION: "8.3"
19-
environment:
20-
PHP_IDE_CONFIG: 'serverName=icanboogie-http'
21-
volumes:
22-
- .:/app:delegated
23-
- ~/.composer:/root/.composer:delegated
24-
working_dir: /app
253
app84:
264
build:
275
context: .
286
args:
29-
PHP_VERSION: "8.4.0RC3"
7+
PHP_VERSION: "8.4"
308
environment:
319
PHP_IDE_CONFIG: 'serverName=icanboogie-http'
3210
volumes:

lib/AuthenticationRequired.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*/
1212
class AuthenticationRequired extends ClientError implements SecurityError
1313
{
14-
public const DEFAULT_MESSAGE = "The requested URL requires authentication.";
14+
public const string DEFAULT_MESSAGE = "The requested URL requires authentication.";
1515

1616
/**
1717
* @inheritdoc

lib/Exception/NoResponder.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use LogicException;
77

88
/**
9-
* Thrown when there's no responder available for a request.
9+
* Thrown when there is no responder available for a request.
1010
*/
1111
class NoResponder extends LogicException implements Exception
1212
{

0 commit comments

Comments
 (0)