Skip to content

Commit

Permalink
Merge pull request #15 from wimski/update/laravel-11-support
Browse files Browse the repository at this point in the history
Add Laravel 11 support
  • Loading branch information
wimski committed Mar 15, 2024
2 parents e3296b8 + 1578bee commit 4620d20
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/code-coverage.yml
Expand Up @@ -15,7 +15,7 @@ jobs:
fail-fast: true
matrix:
os: [ubuntu-latest]
php: [8.2]
php: [8.3]
dependency-version: [prefer-stable]

name: P${{ matrix.php }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/phpstan.yml
Expand Up @@ -15,7 +15,7 @@ jobs:
fail-fast: true
matrix:
os: [ubuntu-latest]
php: [8.2]
php: [8.3]
dependency-version: [prefer-stable]

name: P${{ matrix.php }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/phpunit.yml
Expand Up @@ -15,7 +15,7 @@ jobs:
fail-fast: true
matrix:
os: [ubuntu-latest]
php: [7.4, 8.0, 8.1, 8.2]
php: [8.0, 8.1, 8.2, 8.3]
dependency-version: [prefer-lowest, prefer-stable]

name: P${{ matrix.php }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}
Expand Down
11 changes: 10 additions & 1 deletion CHANGELOG.md
Expand Up @@ -9,6 +9,14 @@ This changelog is initialized in release 1.0.0

## [Unreleased]

## [v4.0.0] - 2024-03-15

### Added
* Laravel 11 support

### Removed
* PHP 7.4 and Laravel 8 support

## [v3.0.0] - 2023-03-30

### Changed
Expand Down Expand Up @@ -72,7 +80,8 @@ This changelog is initialized in release 1.0.0
* Columns argument to ModelRepositoryInterface::all to be compatible with the underlying Eloquent model
* FQN options for contract and repository to ModelRepositoryMakeCommand

[Unreleased]: https://github.com/wimski/laravel-model-repositories/compare/v3.0.0...master
[Unreleased]: https://github.com/wimski/laravel-model-repositories/compare/v4.0.0...master
[v4.0.0]: https://github.com/wimski/laravel-model-repositories/compare/v3.0.0...v4.0.0
[v3.0.0]: https://github.com/wimski/laravel-model-repositories/compare/v2.8.0...v3.0.0
[v2.8.0]: https://github.com/wimski/laravel-model-repositories/compare/v2.7.0...v2.8.0
[v2.7.0]: https://github.com/wimski/laravel-model-repositories/compare/v2.6.0...v2.7.0
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Expand Up @@ -17,9 +17,9 @@
],
"homepage": "https://github.com/wimski/laravel-model-repositories",
"require": {
"php": "^7.4 || ^8.0",
"laravel/framework": "^8.0 || ^9.0 || ^10.0",
"nesbot/carbon": "^2.62.1"
"php": "^8.0",
"laravel/framework": "^9.0 || ^10.0 || ^11.0",
"nesbot/carbon": "^2.62.1 || ^3.0"
},
"require-dev": {
"mockery/mockery": "^1.5",
Expand Down
2 changes: 1 addition & 1 deletion tests/Laravel/App/Models/ModelWithRepository.php
Expand Up @@ -21,7 +21,7 @@ class ModelWithRepository extends Model
use HasFactory;

/**
* @var string[]
* @var array<int, string>
*/
protected $fillable = [
'foo',
Expand Down

0 comments on commit 4620d20

Please sign in to comment.