Skip to content

Commit 6154e84

Browse files
authored
Merge pull request #184 from rollbar/zd/SDK-586/laravel-13
Added Laravel 13 support
2 parents 5c7c8cf + 583808b commit 6154e84

File tree

4 files changed

+19
-14
lines changed

4 files changed

+19
-14
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,24 @@ jobs:
3131
strategy:
3232
matrix:
3333
os: [ubuntu]
34-
php: [8.5 8.4, 8.3, 8.2, 8.1]
35-
laravel: [dev-master, 11.x, 10.x]
34+
php: [8.5, 8.4, 8.3, 8.2, 8.1]
35+
laravel: [dev-master, 13.x, 12.x, 11.x, 10.x]
3636

3737
exclude:
38+
# Laravel 11+ requires PHP 8.2+
3839
- php: 8.1
3940
laravel: dev-master
41+
- php: 8.1
42+
laravel: 13.x
43+
- php: 8.1
44+
laravel: 12.x
4045
- php: 8.1
4146
laravel: 11.x
47+
# Laravel 13+ requires PHP 8.3+
48+
- php: 8.2
49+
laravel: dev-master
50+
- php: 8.2
51+
laravel: 13.x
4252

4353
env:
4454
ROLLBAR_TOKEN: "ad865e76e7fb496fab096ac07b1dbabb"

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ Tests are in `tests`.
5959
* To run the tests: `composer test`
6060
* To fix code style issues: `composer fix`
6161

62+
**Note:** The test suite uses [Orchestra Testbench](https://github.com/orchestral/testbench), which resolves the Laravel version based on your installed PHP. To reproduce Laravel 13-specific failures locally you need **PHP 8.3 or higher** — PHP 8.1/8.2 will resolve to Testbench 9/10 (Laravel 11/12) and will not exercise the Laravel 13 container. The full Laravel 13 integration is verified by CI, which runs the real Laravel install against PHP 8.3+.
63+
6264
## Docker
6365
Docker binaries are located in `./bin` and can be run by simply executing `bin/phpunit` for example.
6466
* To run tests: `bin/phpunit`

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@
2323
],
2424
"require": {
2525
"php": "^8.1",
26-
"illuminate/support": "^10.0|^11.0|^12.0",
26+
"illuminate/support": "^10.0|^11.0|^12.0|^13.0",
2727
"rollbar/rollbar": "^v4.1.3"
2828
},
2929
"require-dev": {
30-
"orchestra/testbench": "^8.0",
30+
"orchestra/testbench": "^8.0|^9.0|^10.0|^11.0",
3131
"mockery/mockery": "^1",
3232
"php-coveralls/php-coveralls": "^2.2",
3333
"squizlabs/php_codesniffer": "3.*",
34-
"phpunit/phpunit": "^8|^9.1"
34+
"phpunit/phpunit": "^10.0|^11.0|^12.0"
3535
},
3636
"autoload": {
3737
"psr-4": {

phpunit.xml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,9 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
backupGlobals="false"
4-
backupStaticAttributes="false"
53
bootstrap="tests/bootstrap.php"
64
colors="true"
7-
convertErrorsToExceptions="true"
8-
convertNoticesToExceptions="true"
9-
convertWarningsToExceptions="true"
10-
processIsolation="false"
11-
stopOnFailure="true"
12-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
13-
<coverage processUncoveredFiles="true">
5+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd">
6+
<coverage>
147
<include>
158
<directory suffix=".php">./src</directory>
169
</include>

0 commit comments

Comments
 (0)