Skip to content

Commit f9fd23e

Browse files
authored
Merge pull request #20 from comes/upgrade-php
upgrade php
2 parents c6c2532 + 96be38c commit f9fd23e

File tree

6 files changed

+71
-72
lines changed

6 files changed

+71
-72
lines changed

.github/workflows/run-tests.yml

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,15 @@ jobs:
1010
test:
1111
runs-on: ${{ matrix.os }}
1212
strategy:
13-
fail-fast: true
13+
fail-fast: false
1414
matrix:
1515
os: [ubuntu-latest, windows-latest]
16-
php: [8.1, 8.0, 7.4]
17-
laravel: [9.*, 8.*]
16+
php: [8.2]
17+
laravel: [10.*]
1818
dependency-version: [prefer-stable]
1919
include:
20-
- laravel: 9.*
21-
testbench: 7.*
22-
- laravel: 8.*
23-
testbench: 6.*
24-
exclude:
25-
- laravel: 7.*
26-
php: 8.1
27-
- laravel: 9.*
28-
php: 7.4
20+
- laravel: 10.*
21+
testbench: 8.*
2922

3023
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}
3124

@@ -51,4 +44,4 @@ jobs:
5144
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
5245
5346
- name: Execute tests
54-
run: vendor/bin/pest
47+
run: composer run-script test

CHANGELOG.md

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,34 @@
22

33
All notable changes to `laravel-request-logger` will be documented in this file.
44

5-
## v1.1.0 - 2022-01-28
5+
## Upgrade guides
6+
7+
### 1.* => 2.*
8+
9+
No breaking changes. The only changes are to the development dependencies used for testing and then the minimum Laravel and PHP requirements.
10+
11+
## Changes
12+
13+
### 2.0.0 - 2023-05-01
14+
15+
- Add support for PHP 8.2
16+
- Minimum PHP requirement 8.2
17+
- Add support for Laravel 10.*
18+
- Minimum Laravel requirement 10.0
19+
20+
### v1.1.0 - 2022-01-28
621

722
- Add Laravel 9 support
823
- Add PHP 8.1 support
924

10-
## v1.0.2 - 2022-01-11
25+
### v1.0.2 - 2022-01-11
1126

1227
- Exclude the parameter api_token per default from all logs (added to config) #17
1328

14-
## v1.0.1 - 2021-11-15
29+
### v1.0.1 - 2021-11-15
1530

1631
- Fix issue when route is undefined: By @woenel in #15
1732

18-
## 1.0.0 - 2021-11-12
33+
### 1.0.0 - 2021-11-12
1934

2035
- initial release

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99

1010
Zero configuration logging of Requests and Responses to database or custom drivers in Laravel applications - no more issues debugging customer support requests.
1111

12+
| Version | Laravel | PHP |
13+
|---------|-------------|-------------------------|
14+
| 1.* | 8.* \| 9.* | 7.4.* \| 8.0.* \| 8.1.* |
15+
| 2.* | 10.* | 8.2.* |
16+
1217
## Installation
1318

1419
You can install the package via composer:

composer.json

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,16 @@
1616
}
1717
],
1818
"require": {
19-
"php": "^7.4 || ^8.0",
19+
"php": "~8.2.0",
2020
"spatie/laravel-package-tools": "^1.4.3",
21-
"illuminate/contracts": "^8.50 || ^9.0",
21+
"illuminate/contracts": "^10.0",
2222
"ext-json": "*"
2323
},
2424
"require-dev": {
25-
"nunomaduro/collision": "^5.3 || ^6.0",
26-
"nunomaduro/larastan": "^1.0 || ^2.0",
27-
"orchestra/testbench": "^6.15 || ^7.0",
28-
"pestphp/pest": "^1.18",
29-
"pestphp/pest-plugin-laravel": "^1.1",
30-
"phpstan/extension-installer": "^1.1",
31-
"phpstan/phpstan-deprecation-rules": "^1.0",
32-
"phpstan/phpstan-phpunit": "^1.0",
33-
"phpunit/phpunit": "^9.3",
34-
"spatie/laravel-ray": "^1.23"
25+
"nunomaduro/collision": "^7.2",
26+
"orchestra/testbench": "^8.0",
27+
"phpunit/phpunit": "^10.0",
28+
"spatie/laravel-ray": "^1.32"
3529
},
3630
"autoload": {
3731
"psr-4": {
@@ -45,12 +39,10 @@
4539
}
4640
},
4741
"scripts": {
48-
"phpstan": "vendor/bin/phpstan analyse",
49-
"test": "./vendor/bin/testbench package:test --parallel --no-coverage",
42+
"test": "./vendor/bin/testbench package:test --no-coverage",
5043
"test-coverage": "vendor/bin/phpunit --coverage-html coverage"
5144
},
5245
"config": {
53-
"sort-packages": true
5446
},
5547
"extra": {
5648
"laravel": {

phpunit.xml.dist

Lines changed: 34 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,38 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phpunit
3-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
5-
backupGlobals="false"
6-
backupStaticAttributes="false"
7-
bootstrap="vendor/autoload.php"
8-
colors="true"
9-
convertErrorsToExceptions="true"
10-
convertNoticesToExceptions="true"
11-
convertWarningsToExceptions="true"
12-
processIsolation="false"
13-
stopOnFailure="false"
14-
executionOrder="random"
15-
failOnWarning="true"
16-
failOnRisky="true"
17-
failOnEmptyTestSuite="true"
18-
beStrictAboutOutputDuringTests="true"
19-
verbose="true"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.1/phpunit.xsd"
5+
backupGlobals="false"
6+
bootstrap="vendor/autoload.php"
7+
colors="true"
8+
processIsolation="false"
9+
stopOnFailure="false"
10+
executionOrder="random"
11+
failOnWarning="true"
12+
failOnRisky="true"
13+
failOnEmptyTestSuite="true"
14+
beStrictAboutOutputDuringTests="true"
15+
cacheDirectory=".phpunit.cache"
16+
backupStaticProperties="false"
2017
>
21-
<testsuites>
22-
<testsuite name="Bilfeldt Test Suite">
23-
<directory>tests</directory>
24-
</testsuite>
25-
</testsuites>
26-
<coverage>
27-
<include>
28-
<directory suffix=".php">./src</directory>
29-
</include>
30-
<report>
31-
<html outputDirectory="build/coverage"/>
32-
<text outputFile="build/coverage.txt"/>
33-
<clover outputFile="build/logs/clover.xml"/>
34-
</report>
35-
</coverage>
36-
<logging>
37-
<junit outputFile="build/report.junit.xml"/>
38-
</logging>
18+
<testsuites>
19+
<testsuite name="Bilfeldt Test Suite">
20+
<directory>tests</directory>
21+
</testsuite>
22+
</testsuites>
23+
<coverage>
24+
<report>
25+
<html outputDirectory="build/coverage"/>
26+
<text outputFile="build/coverage.txt"/>
27+
<clover outputFile="build/logs/clover.xml"/>
28+
</report>
29+
</coverage>
30+
<logging>
31+
<junit outputFile="build/report.junit.xml"/>
32+
</logging>
33+
<source>
34+
<include>
35+
<directory suffix=".php">./src</directory>
36+
</include>
37+
</source>
3938
</phpunit>

tests/Pest.php

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)