Skip to content

Commit

Permalink
Require laravel 11
Browse files Browse the repository at this point in the history
  • Loading branch information
ttrig committed Mar 18, 2024
1 parent 5ede7d5 commit 6fe4848
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -22,5 +22,5 @@ jobs:

- name: Execute tests
run: |
vendor/bin/pint --test
vendor/bin/pint --test -v
vendor/bin/phpunit
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 3 additions & 3 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd" bootstrap="vendor/autoload.php" colors="true" cacheDirectory=".phpunit.cache">
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" bootstrap="vendor/autoload.php" colors="true" cacheDirectory=".phpunit.cache">
<testsuites>
<testsuite name="Butler Health Test Suite">
<directory suffix="Test.php">./tests</directory>
</testsuite>
</testsuites>
<coverage>
<source>
<include>
<directory suffix=".php">./src</directory>
</include>
</coverage>
</source>
</phpunit>
2 changes: 1 addition & 1 deletion src/Repository.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
];
}

Expand Down

0 comments on commit 6fe4848

Please sign in to comment.