From 65f385c9b560259dd36e8afa562a3c9f084e99c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Rub=C3=A9l?= Date: Thu, 19 Jan 2023 13:01:46 +0100 Subject: [PATCH] =?UTF-8?q?Laravel=2010=20support=20=F0=9F=8F=B7=20(#2)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## About This PR drops Laravel 8 support and makes sure the package works well with Laravel version 10. --- --- .github/workflows/phpstan.yml | 6 +-- .github/workflows/run-tests.yml | 7 +++- README.md | 6 +-- composer.json | 11 +++--- phpcs.xml | 66 --------------------------------- 5 files changed, 16 insertions(+), 80 deletions(-) delete mode 100644 phpcs.xml diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml index 403b9d3..a0ac2ae 100644 --- a/.github/workflows/phpstan.yml +++ b/.github/workflows/phpstan.yml @@ -11,13 +11,13 @@ jobs: name: phpstan runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: '8.0' - extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick + php-version: '8.1' + extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, intl coverage: none - name: Cache composer dependencies diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index a1a85fd..44d6467 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -14,8 +14,11 @@ jobs: matrix: os: [ubuntu-latest, windows-latest] php: [8.0, 8.1, 8.2] - laravel: [9.*] + laravel: [10.*, 9.*] stability: [prefer-lowest, prefer-stable] + exclude: + - laravel: 10.* + php: 8.0 name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }} @@ -37,7 +40,7 @@ jobs: - name: Install dependencies run: | - composer require "laravel/framework:${{ matrix.laravel }}" "nesbot/carbon:^2.62.1" --dev --no-interaction --no-update + composer require "laravel/framework:${{ matrix.laravel }}" "nesbot/carbon:^2.64.1" --dev --no-interaction --no-update composer update --${{ matrix.stability }} --prefer-dist --no-interaction - name: Execute tests diff --git a/README.md b/README.md index 00b3fcb..a277a35 100644 --- a/README.md +++ b/README.md @@ -5,15 +5,15 @@ [![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) [![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) [![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) -[![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) -[![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) +[![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) +[![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) This package provides a repository class to run SQL functions available in the database. Currently, only `PostgreSQL` database is supported, but if you want to add support for your database, contributions are welcomed. --- -The package requires PHP `^8.x` and Laravel `^8.71` or `^9.0`. +The package requires `PHP 8` or higher and `Laravel 9` or higher. ## #StandWithUkraine [![SWUbanner](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner2-direct.svg)](https://github.com/vshymanskyy/StandWithUkraine/blob/main/docs/README.md) diff --git a/composer.json b/composer.json index ea98bc2..63d94f5 100644 --- a/composer.json +++ b/composer.json @@ -19,17 +19,16 @@ ], "require": { "php": "^8.0", - "illuminate/contracts": "^8.0|^9.0", + "illuminate/contracts": "^9.0|^10.0", "spatie/laravel-package-tools": "^1.11" }, "require-dev": { - "nunomaduro/collision": "^5.10|^6.0", - "nunomaduro/larastan": "^1.0", + "nunomaduro/collision": "^6.0", + "nunomaduro/larastan": "^2.0", "phpunit/phpunit": "^9.5", - "orchestra/testbench": "^6.6|^7.0", + "orchestra/testbench": "^7.0|^8.0", "brianium/paratest": "^6.3", - "mockery/mockery": "^1.4.4", - "squizlabs/php_codesniffer": "^3.6" + "mockery/mockery": "^1.4.4" }, "autoload": { "psr-4": { diff --git a/phpcs.xml b/phpcs.xml deleted file mode 100644 index 4c4461f..0000000 --- a/phpcs.xml +++ /dev/null @@ -1,66 +0,0 @@ - - - - - Coding Standards - - - src - tests - - - */cache/* - */*.js - */*.css - */*.xml - */*.blade.php - */autoload.php - */vendor/* - index.php - */src/Overrides/* - - - - - - - - - - - - - -