Skip to content

Commit

Permalink
Add Laravel 8 support
Browse files Browse the repository at this point in the history
  • Loading branch information
ekvedaras committed Sep 8, 2020
1 parent a95bc66 commit 35db607
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 3 deletions.
19 changes: 19 additions & 0 deletions CHANGELOG-1.x.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Changelog
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [1.0.1] - 2020-09-08
### Updated
- Add support for Laravel 8

## [1.0.0] - 2020-08-31
### Added
- Enum model property caster

[Unreleased]: https://github.com/ekvedaras/php-enum/compare/v1.0.1...HEAD
[1.0.1]: https://github.com/ekvedaras/php-enum/compare/v1.0.0...v1.0.1
[1.0.0]: https://github.com/ekvedaras/php-enum/releases/tag/v1.0.0
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,9 @@ $rules = [
'status' => 'in:' . PaymentStatus::keyString(),
];
```

## Changelog

See changes in changelog files:

* [v1 changelog](CHANGELOG-1.x.md)
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@
"php": "^7.2",
"ext-json": "*",
"ekvedaras/php-enum": "^1.1",
"illuminate/support": "^7"
"illuminate/support": "^7|^8"
},
"require-dev": {
"phpunit/phpunit": "^8.5.8",
"orchestra/testbench": "^5.4"
"orchestra/testbench": "^5.4|^6.0"
},
"scripts": {
"test": "phpunit",
Expand Down
2 changes: 1 addition & 1 deletion src/Enum.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Enum extends BaseEnum implements Castable
/**
* @inheritDoc
*/
public static function castUsing()
public static function castUsing(array $arguments = [])
{
return EnumCaster::class;
}
Expand Down

0 comments on commit 35db607

Please sign in to comment.