Skip to content
This repository was archived by the owner on Mar 15, 2024. It is now read-only.

Commit 65f385c

Browse files
Laravel 10 support 🏷 (#2)
## About This PR drops Laravel 8 support and makes sure the package works well with Laravel version 10. ---
1 parent abd9377 commit 65f385c

File tree

5 files changed

+16
-80
lines changed

5 files changed

+16
-80
lines changed

.github/workflows/phpstan.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ jobs:
1111
name: phpstan
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v3
1515

1616
- name: Setup PHP
1717
uses: shivammathur/setup-php@v2
1818
with:
19-
php-version: '8.0'
20-
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
19+
php-version: '8.1'
20+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, intl
2121
coverage: none
2222

2323
- name: Cache composer dependencies

.github/workflows/run-tests.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,11 @@ jobs:
1414
matrix:
1515
os: [ubuntu-latest, windows-latest]
1616
php: [8.0, 8.1, 8.2]
17-
laravel: [9.*]
17+
laravel: [10.*, 9.*]
1818
stability: [prefer-lowest, prefer-stable]
19+
exclude:
20+
- laravel: 10.*
21+
php: 8.0
1922

2023
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
2124

@@ -37,7 +40,7 @@ jobs:
3740
3841
- name: Install dependencies
3942
run: |
40-
composer require "laravel/framework:${{ matrix.laravel }}" "nesbot/carbon:^2.62.1" --dev --no-interaction --no-update
43+
composer require "laravel/framework:${{ matrix.laravel }}" "nesbot/carbon:^2.64.1" --dev --no-interaction --no-update
4144
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
4245
4346
- name: Execute tests

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
[![Total Downloads](https://img.shields.io/packagist/dt/michael-rubel/laravel-sql-function-repository.svg?style=flat-square&logo=packagist)](https://packagist.org/packages/michael-rubel/laravel-sql-function-repository)
66
[![Code Quality](https://img.shields.io/scrutinizer/quality/g/michael-rubel/laravel-sql-function-repository.svg?style=flat-square&logo=scrutinizer)](https://scrutinizer-ci.com/g/michael-rubel/laravel-sql-function-repository/?branch=main)
77
[![Code Coverage](https://img.shields.io/scrutinizer/coverage/g/michael-rubel/laravel-sql-function-repository.svg?style=flat-square&logo=scrutinizer)](https://scrutinizer-ci.com/g/michael-rubel/laravel-sql-function-repository/?branch=main)
8-
[![GitHub Tests Action Status](https://img.shields.io/github/workflow/status/michael-rubel/laravel-sql-function-repository/run-tests/main?style=flat-square&label=tests&logo=github)](https://github.com/michael-rubel/laravel-sql-function-repository/actions)
9-
[![PHPStan](https://img.shields.io/github/workflow/status/michael-rubel/laravel-sql-function-repository/phpstan/main?style=flat-square&label=larastan&logo=laravel)](https://github.com/michael-rubel/laravel-sql-function-repository/actions)
8+
[![GitHub Tests Action Status](https://img.shields.io/github/actions/workflow/status/michael-rubel/laravel-sql-function-repository/run-tests.yml?branch=main&style=flat-square&label=tests&logo=github)](https://github.com/michael-rubel/laravel-sql-function-repository/actions)
9+
[![PHPStan](https://img.shields.io/github/actions/workflow/status/michael-rubel/laravel-sql-function-repository/phpstan.yml?branch=main&style=flat-square&label=larastan&logo=laravel)](https://github.com/michael-rubel/laravel-sql-function-repository/actions)
1010

1111
This package provides a repository class to run SQL functions available in the database.
1212
Currently, only `PostgreSQL` database is supported, but if you want to add support for your database, contributions are welcomed.
1313

1414
---
1515

16-
The package requires PHP `^8.x` and Laravel `^8.71` or `^9.0`.
16+
The package requires `PHP 8` or higher and `Laravel 9` or higher.
1717

1818
## #StandWithUkraine
1919
[![SWUbanner](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner2-direct.svg)](https://github.com/vshymanskyy/StandWithUkraine/blob/main/docs/README.md)

composer.json

+5-6
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,16 @@
1919
],
2020
"require": {
2121
"php": "^8.0",
22-
"illuminate/contracts": "^8.0|^9.0",
22+
"illuminate/contracts": "^9.0|^10.0",
2323
"spatie/laravel-package-tools": "^1.11"
2424
},
2525
"require-dev": {
26-
"nunomaduro/collision": "^5.10|^6.0",
27-
"nunomaduro/larastan": "^1.0",
26+
"nunomaduro/collision": "^6.0",
27+
"nunomaduro/larastan": "^2.0",
2828
"phpunit/phpunit": "^9.5",
29-
"orchestra/testbench": "^6.6|^7.0",
29+
"orchestra/testbench": "^7.0|^8.0",
3030
"brianium/paratest": "^6.3",
31-
"mockery/mockery": "^1.4.4",
32-
"squizlabs/php_codesniffer": "^3.6"
31+
"mockery/mockery": "^1.4.4"
3332
},
3433
"autoload": {
3534
"psr-4": {

phpcs.xml

-66
This file was deleted.

0 commit comments

Comments
 (0)