From 6fe48489b3ce553fb74f46516336fbce380ef901 Mon Sep 17 00:00:00 2001 From: markus Date: Thu, 14 Mar 2024 12:05:37 +0100 Subject: [PATCH] Require laravel 11 --- .github/workflows/test.yml | 4 ++-- CHANGELOG.md | 2 ++ composer.json | 10 +++++----- phpunit.xml | 6 +++--- src/Repository.php | 2 +- 5 files changed, 13 insertions(+), 11 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3d9feeb..024b796 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,7 +6,7 @@ jobs: name: Testing with PHP ${{ matrix.php }} strategy: matrix: - php: [8.1, 8.2] + php: [8.2, 8.3] steps: - uses: actions/checkout@v4 @@ -22,5 +22,5 @@ jobs: - name: Execute tests run: | - vendor/bin/pint --test + vendor/bin/pint --test -v vendor/bin/phpunit diff --git a/CHANGELOG.md b/CHANGELOG.md index 8d3c24c..1f15c4f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Changed +- **BREAKING**: Require Laravel 11. ## [0.5.2] - 2023-12-29 ### Added diff --git a/composer.json b/composer.json index bb11d0b..bceac43 100644 --- a/composer.json +++ b/composer.json @@ -26,12 +26,12 @@ "license": "MIT", "name": "glesys/butler-health", "require": { - "php": "^8.1", + "php": "^8.2", "guzzlehttp/guzzle": "^7.2", - "illuminate/contracts": "^10.0", - "illuminate/database": "^10.0", - "illuminate/routing": "^10.0", - "illuminate/support": "^10.0" + "illuminate/contracts": "^11.0", + "illuminate/database": "^11.0", + "illuminate/routing": "^11.0", + "illuminate/support": "^11.0" }, "require-dev": { "graham-campbell/testbench": "^6.0", diff --git a/phpunit.xml b/phpunit.xml index d187716..6cc846e 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -1,13 +1,13 @@ - + ./tests - + ./src - + diff --git a/src/Repository.php b/src/Repository.php index 0957700..0ac8ae8 100644 --- a/src/Repository.php +++ b/src/Repository.php @@ -90,7 +90,7 @@ private function checkToArray(Check $check): array 'group' => $check->group ?? 'other', 'description' => $check->description, 'result' => $check->run()->toArray(), - 'runtimeInMilliseconds' => $start->diffInMilliseconds(), + 'runtimeInMilliseconds' => (int) $start->diffInMilliseconds(), ]; }