Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Require laravel 11 #23

Merged
merged 1 commit into from
Mar 18, 2024
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: 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(),
ttrig marked this conversation as resolved.
Show resolved Hide resolved
];
}

Expand Down