Skip to content

Commit 4037d69

Browse files
authored
Support only Laravel 10, 11 and newer (#2)
1 parent 662e230 commit 4037d69

File tree

5 files changed

+26
-42
lines changed

5 files changed

+26
-42
lines changed

.github/workflows/run-tests.yml

Lines changed: 6 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -8,34 +8,17 @@ jobs:
88
strategy:
99
fail-fast: true
1010
matrix:
11-
php: [ 8.0, 8.1 ]
12-
laravel: [ 8.*, 9.*, 10.* ]
11+
php: [ 8.1, 8.2, 8.3 ]
12+
laravel: [ 10.*, 11.* ]
1313
dependency-version: [ prefer-stable ]
1414
include:
15-
- laravel: 6.*
16-
php: 7.2
17-
testbench: 4.*
18-
- laravel: 6.*
19-
php: 8.0
20-
testbench: 4.*
21-
- laravel: 7.*
22-
php: 7.2
23-
testbench: 5.*
24-
- laravel: 7.*
25-
php: 8.0
26-
testbench: 5.*
27-
- laravel: 8.*
28-
php: 7.3
29-
testbench: 6.*
30-
- laravel: 8.*
31-
testbench: 6.*
32-
- laravel: 9.*
33-
testbench: 7.*
3415
- laravel: 10.*
3516
testbench: 8.*
17+
- laravel: 11.*
18+
testbench: 9.*
3619
exclude:
37-
- laravel: 10.*
38-
php: 8.0
20+
- laravel: 11.*
21+
php: 8.1
3922

4023
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
4124

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
composer.lock
44
phpunit.xml
55
.phpunit.result.cache
6+
.phpunit.cache

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Flash Notifications for Laravel
22

33
[![GitHub release](https://img.shields.io/github/release/codezero-be/laravel-flash.svg?style=flat-square)](https://github.com/codezero-be/laravel-flash/releases)
4-
[![Laravel](https://img.shields.io/badge/laravel-10-red?style=flat-square&logo=laravel&logoColor=white)](https://laravel.com)
4+
[![Laravel](https://img.shields.io/badge/laravel-11-red?style=flat-square&logo=laravel&logoColor=white)](https://laravel.com)
55
[![License](https://img.shields.io/packagist/l/codezero/laravel-flash.svg?style=flat-square)](LICENSE.md)
66
[![Build Status](https://img.shields.io/github/actions/workflow/status/codezero-be/laravel-flash/run-tests.yml?style=flat-square&logo=github&logoColor=white&label=tests)](https://github.com/codezero-be/laravel-flash/actions)
77
[![Code Coverage](https://img.shields.io/codacy/coverage/22d50bd2782540bb806f576966a5f5d5/master?style=flat-square)](https://app.codacy.com/gh/codezero-be/laravel-flash)
@@ -19,8 +19,8 @@
1919

2020
## ✅ Requirements
2121

22-
- PHP >= 7.2
23-
- Laravel >= 6.0
22+
- PHP >= 8.1
23+
- Laravel >= 10.0
2424

2525
## 📦 Install
2626

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@
1616
}
1717
],
1818
"require": {
19-
"php": "^7.2|^8.0",
20-
"illuminate/session": "^6.0|^7.0|^8.0|^9.0|^10.0",
21-
"illuminate/support": "^6.0|^7.0|^8.0|^9.0|^10.0"
19+
"php": "^8.1",
20+
"illuminate/session": "^10.0|^11.0",
21+
"illuminate/support": "^10.0|^11.0"
2222
},
2323
"require-dev": {
24-
"orchestra/testbench": "^4.0|^5.0|^6.0|^7.0|^8.0",
25-
"phpunit/phpunit": "^8.0|^9.0"
24+
"orchestra/testbench": "^8.0|^9.0",
25+
"phpunit/phpunit": "^10.5"
2626
},
2727
"scripts": {
2828
"test": "phpunit"

phpunit.xml.dist

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit backupGlobals="false"
3-
backupStaticAttributes="false"
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
backupGlobals="false"
44
bootstrap="vendor/autoload.php"
55
colors="true"
6-
convertErrorsToExceptions="true"
7-
convertNoticesToExceptions="true"
8-
convertWarningsToExceptions="true"
96
processIsolation="false"
10-
stopOnFailure="false">
7+
stopOnFailure="false"
8+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
9+
cacheDirectory=".phpunit.cache"
10+
backupStaticProperties="false">
1111
<testsuites>
1212
<testsuite name="Unit">
1313
<directory suffix="Test.php">./tests</directory>
1414
</testsuite>
1515
</testsuites>
16-
<filter>
17-
<whitelist processUncoveredFilesFromWhitelist="true">
18-
<directory suffix=".php">./src</directory>
19-
</whitelist>
20-
</filter>
2116
<php>
2217
<env name="APP_ENV" value="testing"/>
2318
<env name="CACHE_DRIVER" value="array"/>
2419
<env name="SESSION_DRIVER" value="array"/>
2520
<env name="QUEUE_DRIVER" value="sync"/>
2621
</php>
22+
<source>
23+
<include>
24+
<directory suffix=".php">./src</directory>
25+
</include>
26+
</source>
2727
</phpunit>

0 commit comments

Comments
 (0)