Skip to content

Commit

Permalink
Merge pull request #36 from harrygulliford/laravel-10.x
Browse files Browse the repository at this point in the history
Add support for Laravel 10
  • Loading branch information
harrygulliford authored Mar 21, 2023
2 parents e69682b + 54f54c6 commit bb45e1f
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 40 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,26 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
php: [8.1, 8.0, 7.4]
laravel: [8.*, 9.*]
php: [8.2, 8.1, 8.0, 7.4]
laravel: [10.*, 9.*, 8.*]
stability: [prefer-lowest, prefer-stable]
firebird: [v4.0, v3.0, v2.5.9-sc]
include:
- laravel: 8.*
testbench: ^6.19
- laravel: 9.*
testbench: ^7.0
- laravel: 10.*
testbench: ^8.0
exclude:
- laravel: 8.*
php: 8.2
- laravel: 9.*
php: 7.4
- laravel: 10.*
php: 8.0
- laravel: 10.*
php: 7.4

name: PHP ${{ matrix.php }}, Laravel ${{ matrix.laravel }}, Firebird ${{ matrix.firebird }}, ${{ matrix.stability }}

Expand Down
74 changes: 37 additions & 37 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
{
"name": "harrygulliford/laravel-firebird",
"description": "Firebird database driver for the Laravel Framework",
"license": "MIT",
"require": {
"php": "^7.4|^8.0",
"illuminate/support": "^8.65|^9.0",
"illuminate/container": "^8.65|^9.0",
"illuminate/database": "^8.65|^9.0",
"illuminate/events": "^8.65|^9.0"
},
"require-dev": {
"mockery/mockery": "^1.4",
"phpunit/phpunit": "^9.5.10",
"orchestra/testbench": "^6.19|^7.0",
"fakerphp/faker": "^1.15"
},
"archive": {
"exclude": [
"/tests"
]
},
"autoload": {
"psr-4": {
"HarryGulliford\\Firebird\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"HarryGulliford\\Firebird\\Tests\\": "tests/"
}
},
"extra": {
"laravel": {
"providers": [
"HarryGulliford\\Firebird\\FirebirdServiceProvider"
]
}
"name": "harrygulliford/laravel-firebird",
"description": "Firebird database driver for the Laravel Framework",
"license": "MIT",
"require": {
"php": "^7.4|^8.0",
"illuminate/support": "^8.65|^9.33|^10.0",
"illuminate/container": "^8.65|^9.33|^10.0",
"illuminate/database": "^8.65|^9.33|^10.0",
"illuminate/events": "^8.65|^9.33|^10.0"
},
"require-dev": {
"mockery/mockery": "^1.4",
"phpunit/phpunit": "^9.5.10",
"orchestra/testbench": "^6.19|^7.0|^8.0",
"fakerphp/faker": "^1.15"
},
"archive": {
"exclude": [
"/tests"
]
},
"autoload": {
"psr-4": {
"HarryGulliford\\Firebird\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"HarryGulliford\\Firebird\\Tests\\": "tests/"
}
},
"extra": {
"laravel": {
"providers": [
"HarryGulliford\\Firebird\\FirebirdServiceProvider"
]
}
}
}
2 changes: 1 addition & 1 deletion tests/QueryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -980,7 +980,7 @@ public function it_can_execute_raw_select_containing_arithmetic()
->get();

foreach ($results as $result) {
$this->assertEquals($result->price * 1.1, $result->price_with_tax);
$this->assertEquals(round($result->price * 1.1), $result->price_with_tax);
}
}

Expand Down

0 comments on commit bb45e1f

Please sign in to comment.