Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
matrix:
php: [7.4, '8.0', 8.1]
lib:
- { laravel: ^10.0 }
- { laravel: ^9.0 }
- { laravel: ^8.0 }
- { laravel: ^7.0 }
Expand All @@ -35,8 +36,11 @@ jobs:
- { php: 8.1, lib: { laravel: ^7.0 } }
- { php: 8.1, lib: { laravel: ^6.0 } }
- { php: 8.1, lib: { laravel: ^6.0, flags: --prefer-lowest } }
- { php: 8.0, lib: { laravel: ^10.0 } }
- { php: 7.4, lib: { laravel: ^10.0 } }
- { php: 7.4, lib: { laravel: ^9.0 } }
include:
- { php: 8.1, lib: { laravel: ^10.0 }, phpstan: '1' }
- { php: 8.1, lib: { laravel: ^9.0 }, phpstan: '1' }
- { php: 8.1, lib: { laravel: ^8.0 }, phpstan: '1' }
- { php: '8.0', lib: { laravel: ^9.0 }, phpstan: '1' }
Expand Down
4 changes: 3 additions & 1 deletion .scrutinizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ filter:

build:

image: default-bionic

nodes:
analysis:
tests:
Expand All @@ -28,7 +30,7 @@ build:
- 3306

environment:
php: '7.4'
php: '8.1.8'
docker: true

dependencies:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ A tiny extension of `MySqlConnection` that manages **session** system variables
| Package | Version | Mandatory |
|:---|:---|:---:|
| PHP | <code>^7.4 &#124;&#124; ^8.0</code> | ✅ |
| Laravel | <code>^6.0 &#124;&#124; ^7.0 &#124;&#124; ^8.0 &#124;&#124; ^9.0</code> | ✅ |
| Laravel | <code>^6.0 &#124;&#124; ^7.0 &#124;&#124; ^8.0 &#124;&#124; ^9.0 &#124;&#124; ^10.0</code> | ✅ |
| PHPStan | <code>&gt;=1.1</code> | |

## Installing
Expand Down
16 changes: 7 additions & 9 deletions docker-compose.yml → compose.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,20 @@
version: '3'
version: 'Compose-Spec'

services:

php:
image: circleci/php:7.4
image: joseluisq/php-fpm:8.1
volumes:
- .:/code:cached
command:
sh -c '
sudo docker-php-ext-install pdo_mysql;
cd /code;
tail -F /dev/null;
'
working_dir: /code
entrypoint: ['tail', '-f', '/dev/null']
command: []

mysql:
image: mysql:5.7
image: mysql:8.0
environment:
MYSQL_DATABASE: testing
MYSQL_USER: testing
MYSQL_PASSWORD: testing
MYSQL_ROOT_PASSWORD: testing

11 changes: 8 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
"require": {
"php": "^7.4 || ^8.0",
"ext-pdo": "*",
"illuminate/support": "^6.0 || ^7.0 || ^8.0 || ^9.0",
"illuminate/database": "^6.0 || ^7.0 || ^8.0 || ^9.0",
"illuminate/support": "^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0",
"illuminate/database": "^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0",
"mpyw/unclosure": "^3.0",
"mpyw/laravel-pdo-emulation-control": "^2.0.2"
},
Expand All @@ -35,7 +35,7 @@
"phpunit/phpunit": ">=9.5",
"phpstan/phpstan": ">=1.1",
"phpstan/extension-installer": ">=1.1",
"nunomaduro/larastan": "^1.0"
"nunomaduro/larastan": ">=1.0"
},
"scripts": {
"test": "vendor/bin/phpunit",
Expand All @@ -49,5 +49,10 @@
"extension.neon"
]
}
},
"config": {
"allow-plugins": {
"phpstan/extension-installer": true
}
}
}