Skip to content

Commit

Permalink
Add Laravel v10 support (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
antonkomarev authored Mar 1, 2023
1 parent 0bfbff8 commit b92c3f2
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 32 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,18 @@ jobs:
matrix:
os: [ ubuntu-latest ]
php: [ 8.0, 8.1, 8.2 ]
laravel: [ 9.* ]
laravel: [ 9.*, 10.* ]
dependency-version: [ prefer-lowest, prefer-stable ]
exclude:
- laravel: 9.*
php: 8.2
- laravel: 10.*
php: 8.0
include:
- laravel: 9.*
testbench: 7.*
- laravel: 10.*
testbench: 8.*

name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}

Expand Down
22 changes: 21 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,24 @@ All notable changes to `cybercog/laravel-optimus` will be documented in this fil

## [Unreleased]

## [3.9.0] - 2023-03-01

### Added

- ([#35]) Added Laravel 10 support

### Removed

- ([#35]) Dropped Laravel 5.5 support
- ([#35]) Dropped Laravel 5.6 support
- ([#35]) Dropped Laravel 5.7 support
- ([#35]) Dropped Laravel 5.8 support
- ([#35]) Dropped Laravel 6 support
- ([#35]) Dropped Laravel 7 support
- ([#35]) Dropped PHP 7.1 support
- ([#35]) Dropped PHP 7.2 support
- ([#35]) Dropped PHP 7.3 support

## [3.8.0] - 2022-02-11

### Added
Expand Down Expand Up @@ -100,7 +118,8 @@ All notable changes to `cybercog/laravel-optimus` will be documented in this fil

Initial release

[Unreleased]: https://github.com/cybercog/laravel-optimus/compare/3.8.0...master
[Unreleased]: https://github.com/cybercog/laravel-optimus/compare/3.9.0...master
[3.9.0]: https://github.com/cybercog/laravel-optimus/compare/3.8.0...3.9.0
[3.8.0]: https://github.com/cybercog/laravel-optimus/compare/3.7.0...3.8.0
[3.7.0]: https://github.com/cybercog/laravel-optimus/compare/3.6.0...3.7.0
[3.6.0]: https://github.com/cybercog/laravel-optimus/compare/3.5.0...3.6.0
Expand All @@ -115,6 +134,7 @@ Initial release
[2.1.0]: https://github.com/cybercog/laravel-optimus/compare/2.0.0...2.1.0
[2.0.0]: https://github.com/cybercog/laravel-optimus/compare/1.0.0...2.0.0

[#35]: https://github.com/cybercog/laravel-optimus/pull/35
[#32]: https://github.com/cybercog/laravel-optimus/pull/32
[#31]: https://github.com/cybercog/laravel-optimus/pull/31
[#30]: https://github.com/cybercog/laravel-optimus/pull/30
Expand Down
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@
"docs": "https://github.com/cybercog/laravel-optimus/wiki"
},
"require": {
"php": "^7.1.3|^8.0",
"graham-campbell/manager": "^4.0",
"illuminate/contracts": "^5.5|^6.0|^7.0|^8.0|^9.0",
"illuminate/support": "^5.5|^6.0|^7.0|^8.0|^9.0",
"php": "^7.4|^8.0",
"graham-campbell/manager": "^5.0",
"illuminate/contracts": "^8.0|^9.0|^10.0",
"illuminate/support": "^8.0|^9.0|^10.0",
"jenssegers/optimus": "^0.2.2"
},
"require-dev": {
"graham-campbell/testbench": "^5.0",
"graham-campbell/testbench": "^6.0",
"mockery/mockery": "^1.0",
"phpunit/phpunit": "^9.6"
},
Expand Down
7 changes: 1 addition & 6 deletions tests/AbstractTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,7 @@

abstract class AbstractTestCase extends AbstractPackageTestCase
{
/**
* Get the service provider class.
*
* @return string
*/
protected function getServiceProviderClass()
protected static function getServiceProviderClass(): string
{
return OptimusServiceProvider::class;
}
Expand Down
21 changes: 3 additions & 18 deletions tests/Facades/OptimusTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,32 +22,17 @@ final class OptimusTest extends AbstractTestCase
{
use FacadeTrait;

/**
* Get the facade accessor.
*
* @return string
*/
protected function getFacadeAccessor(): string
protected static function getFacadeAccessor(): string
{
return 'optimus';
}

/**
* Get the facade class.
*
* @return string
*/
protected function getFacadeClass(): string
protected static function getFacadeClass(): string
{
return Optimus::class;
}

/**
* Get the facade root.
*
* @return string
*/
protected function getFacadeRoot(): string
protected static function getFacadeRoot(): string
{
return OptimusManager::class;
}
Expand Down
2 changes: 1 addition & 1 deletion tests/OptimusManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function testCreateConnection(): void
$this->assertArrayHasKey('optimus', $manager->getConnections());
}

protected function getManager(array $config)
protected function getManager(array $config): OptimusManager
{
$repository = Mockery::mock(Repository::class);
$factory = Mockery::mock(OptimusFactory::class);
Expand Down

0 comments on commit b92c3f2

Please sign in to comment.