Skip to content

Commit d965e5d

Browse files
authored
Support for Laravel 10 (#15)
1 parent 5e1adfe commit d965e5d

File tree

5 files changed

+23
-14
lines changed

5 files changed

+23
-14
lines changed

.github/workflows/ci.yml

+4
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626
matrix:
2727
php: [7.4, '8.0', 8.1]
2828
lib:
29+
- { laravel: ^10.0 }
2930
- { laravel: ^9.0 }
3031
- { laravel: ^8.0 }
3132
- { laravel: ^7.0 }
@@ -35,8 +36,11 @@ jobs:
3536
- { php: 8.1, lib: { laravel: ^7.0 } }
3637
- { php: 8.1, lib: { laravel: ^6.0 } }
3738
- { php: 8.1, lib: { laravel: ^6.0, flags: --prefer-lowest } }
39+
- { php: 8.0, lib: { laravel: ^10.0 } }
40+
- { php: 7.4, lib: { laravel: ^10.0 } }
3841
- { php: 7.4, lib: { laravel: ^9.0 } }
3942
include:
43+
- { php: 8.1, lib: { laravel: ^10.0 }, phpstan: '1' }
4044
- { php: 8.1, lib: { laravel: ^9.0 }, phpstan: '1' }
4145
- { php: 8.1, lib: { laravel: ^8.0 }, phpstan: '1' }
4246
- { php: '8.0', lib: { laravel: ^9.0 }, phpstan: '1' }

.scrutinizer.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ filter:
1010

1111
build:
1212

13+
image: default-bionic
14+
1315
nodes:
1416
analysis:
1517
tests:
@@ -28,7 +30,7 @@ build:
2830
- 3306
2931

3032
environment:
31-
php: '7.4'
33+
php: '8.1.8'
3234
docker: true
3335

3436
dependencies:

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ A tiny extension of `MySqlConnection` that manages **session** system variables
77
| Package | Version | Mandatory |
88
|:---|:---|:---:|
99
| PHP | <code>^7.4 &#124;&#124; ^8.0</code> ||
10-
| Laravel | <code>^6.0 &#124;&#124; ^7.0 &#124;&#124; ^8.0 &#124;&#124; ^9.0</code> ||
10+
| Laravel | <code>^6.0 &#124;&#124; ^7.0 &#124;&#124; ^8.0 &#124;&#124; ^9.0 &#124;&#124; ^10.0</code> ||
1111
| PHPStan | <code>&gt;=1.1</code> | |
1212

1313
## Installing
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,20 @@
1-
version: '3'
1+
version: 'Compose-Spec'
22

33
services:
44

55
php:
6-
image: circleci/php:7.4
6+
image: joseluisq/php-fpm:8.1
77
volumes:
88
- .:/code:cached
9-
command:
10-
sh -c '
11-
sudo docker-php-ext-install pdo_mysql;
12-
cd /code;
13-
tail -F /dev/null;
14-
'
9+
working_dir: /code
10+
entrypoint: ['tail', '-f', '/dev/null']
11+
command: []
1512

1613
mysql:
17-
image: mysql:5.7
14+
image: mysql:8.0
1815
environment:
1916
MYSQL_DATABASE: testing
2017
MYSQL_USER: testing
2118
MYSQL_PASSWORD: testing
2219
MYSQL_ROOT_PASSWORD: testing
20+

composer.json

+8-3
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
"require": {
2525
"php": "^7.4 || ^8.0",
2626
"ext-pdo": "*",
27-
"illuminate/support": "^6.0 || ^7.0 || ^8.0 || ^9.0",
28-
"illuminate/database": "^6.0 || ^7.0 || ^8.0 || ^9.0",
27+
"illuminate/support": "^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0",
28+
"illuminate/database": "^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0",
2929
"mpyw/unclosure": "^3.0",
3030
"mpyw/laravel-pdo-emulation-control": "^2.0.2"
3131
},
@@ -35,7 +35,7 @@
3535
"phpunit/phpunit": ">=9.5",
3636
"phpstan/phpstan": ">=1.1",
3737
"phpstan/extension-installer": ">=1.1",
38-
"nunomaduro/larastan": "^1.0"
38+
"nunomaduro/larastan": ">=1.0"
3939
},
4040
"scripts": {
4141
"test": "vendor/bin/phpunit",
@@ -49,5 +49,10 @@
4949
"extension.neon"
5050
]
5151
}
52+
},
53+
"config": {
54+
"allow-plugins": {
55+
"phpstan/extension-installer": true
56+
}
5257
}
5358
}

0 commit comments

Comments
 (0)