Skip to content

Commit 57d50b5

Browse files
authored
Merge pull request #57 from fish3046/laravel11
Support Laravel 11
2 parents 5598030 + e629f6e commit 57d50b5

File tree

4 files changed

+25
-22
lines changed

4 files changed

+25
-22
lines changed

.github/workflows/php.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
php-versions: ['8.1', '8.2']
14+
php-versions: ['8.1', '8.2', '8.3']
1515
name: PHP ${{ matrix.php-versions }} Test
1616
steps:
1717
- uses: actions/checkout@v2

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ fluent logger for laravel
1414

1515
## Versions
1616

17-
| Framework | Library |
18-
|-----------------------|---------------------------------|
19-
| Laravel / Lumen < v10 | ytake/laravel-fluent-logger: ^5 |
20-
| Laravel / Lumen v10 | ytake/laravel-fluent-logger: ^6 |
17+
| Framework | Library |
18+
|------------------------|---------------------------------|
19+
| Laravel / Lumen < v10 | ytake/laravel-fluent-logger: ^5 |
20+
| Laravel / Lumen >= v10 | ytake/laravel-fluent-logger: ^6 |
2121

2222

2323

@@ -232,7 +232,8 @@ You could use a tag format of `myapp.{{foo}}` to produce a tag of `myapp.bar`.
232232

233233
## Monolog processors
234234

235-
You can add processors to the monolog handlers by adding them to the `processors` array within the `fluent.php` config.
235+
You can add [processors](https://seldaek.github.io/monolog/doc/01-usage.html#using-processors) to the Monolog handlers by adding them to
236+
the `processors` array within the `fluent.php` config.
236237

237238
config/fluent.php:
238239
```php

composer.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,18 @@
1919
"require": {
2020
"php": "^8.1",
2121
"fluent/logger": "^1.0",
22-
"illuminate/log": "^10.0",
23-
"illuminate/support": "^10.0",
24-
"illuminate/config": "^10.0",
25-
"illuminate/contracts": "^10.0",
26-
"illuminate/container": "^10.0",
27-
"illuminate/events": "^10.0",
22+
"illuminate/log": "^10.0 | ^11.0",
23+
"illuminate/support": "^10.0 | ^11.0",
24+
"illuminate/config": "^10.0 | ^11.0",
25+
"illuminate/contracts": "^10.0 | ^11.0",
26+
"illuminate/container": "^10.0 | ^11.0",
27+
"illuminate/events": "^10.0 | ^11.0",
2828
"monolog/monolog": "^3.0"
2929
},
3030
"require-dev": {
31-
"phpunit/phpunit": "^9.0",
31+
"phpunit/phpunit": "^10.0",
3232
"php-coveralls/php-coveralls": "^2.4",
33-
"illuminate/filesystem": "^10.0",
33+
"illuminate/filesystem": "^10.0 | ^11.0",
3434
"phpstan/phpstan": "^1.10",
3535
"slevomat/coding-standard": "^6.4",
3636
"squizlabs/php_codesniffer": "^3.5",

phpunit.xml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" backupStaticAttributes="false" bootstrap="vendor/autoload.php" colors="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" bootstrap="vendor/autoload.php" colors="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.1/phpunit.xsd" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
33
<coverage>
4-
<include>
5-
<directory>./src</directory>
6-
</include>
7-
<exclude>
8-
<directory>./src/config</directory>
9-
<directory suffix="ServiceProvider.php">./src</directory>
10-
</exclude>
114
<report>
125
<clover outputFile="tests/logs/clover.xml"/>
136
<text outputFile="php://stdout" showUncoveredFiles="false"/>
@@ -19,4 +12,13 @@
1912
</testsuite>
2013
</testsuites>
2114
<logging/>
15+
<source>
16+
<include>
17+
<directory>./src</directory>
18+
</include>
19+
<exclude>
20+
<directory>./src/config</directory>
21+
<directory suffix="ServiceProvider.php">./src</directory>
22+
</exclude>
23+
</source>
2224
</phpunit>

0 commit comments

Comments
 (0)