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

Bump bensampo/laravel-enum from 1.38.0 to 2.2.0 #959

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Apr 13, 2021

Bumps bensampo/laravel-enum from 1.38.0 to 2.2.0.

Changelog

Sourced from bensampo/laravel-enum's changelog.

2.2.0 - 2020-08-30

Fixed

  • Model attributes which use Laravel 7 native casting now return the enum value when serialized. #162 #163

Deprecated

  • Enum::toArray() should no longer be called statically, instead use Enum::asArray().

2.1.0 - 2020-07-24

Fixed

  • Allow returning null when using native casting #152

2.0.0 - 2020-07-02

Added

  • Native attribute casting #131

Changed

  • Require Laravel 7.5 or higher
  • Require PHP 7.2.5 or higher

Deprecated

  • Deprecate legacy attribute casting in favor of native casting
Upgrade guide

Sourced from bensampo/laravel-enum's upgrade guide.

Upgrade Guide

3.x

Laravel 8 required

Laravel 8 or higher is required.

PHP 7.3 required

PHP 7.3 or higher is now required.

2.x

Laravel 7.5 required

Laravel 7.5 or higher is required for the new native attribute casting.

PHP 7.2 required

PHP 7.2.5 or higher is now required.

Switch to native casting

You should update your models to use Laravel 7 native casting. Remove the trait and move the casts from $enumCasts to $casts.

Trait based casting is still present, but is now deprecated and will be removed in the next major version.

--use BenSampo\Enum\Traits\CastsEnums;
class MyModel extends Model
{


use CastsEnums;


protected $enumCasts = [



protected $casts = [
'foo' => Foo::class,
];
Commits

Dependabot compatibility score

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
> **Note** > Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

@dependabot dependabot bot added dependencies Pull requests that update a dependency file php Pull requests that update Php code labels Apr 13, 2021
@dependabot dependabot bot force-pushed the dependabot/composer/bensampo/laravel-enum-2.2.0 branch 2 times, most recently from 0d341a0 to 64c6f5f Compare May 20, 2021 10:51
@dependabot dependabot bot force-pushed the dependabot/composer/bensampo/laravel-enum-2.2.0 branch from 64c6f5f to e4d021c Compare June 2, 2021 15:17
@pdavide
Copy link
Member

pdavide commented Jun 7, 2021

@dependabot rebase

@dependabot dependabot bot force-pushed the dependabot/composer/bensampo/laravel-enum-2.2.0 branch 6 times, most recently from db77dd7 to 50f74f8 Compare June 7, 2021 16:35
@dependabot dependabot bot force-pushed the dependabot/composer/bensampo/laravel-enum-2.2.0 branch from 50f74f8 to 30d1f2d Compare June 23, 2021 14:05
@dependabot dependabot bot force-pushed the dependabot/composer/bensampo/laravel-enum-2.2.0 branch from 30d1f2d to 0d38e54 Compare July 19, 2021 11:17
@dependabot dependabot bot force-pushed the dependabot/composer/bensampo/laravel-enum-2.2.0 branch 4 times, most recently from d6b71f7 to 9ecce61 Compare August 2, 2021 10:22
@dependabot dependabot bot force-pushed the dependabot/composer/bensampo/laravel-enum-2.2.0 branch 4 times, most recently from bd88eb6 to 1651675 Compare September 23, 2021 11:02
@dependabot dependabot bot force-pushed the dependabot/composer/bensampo/laravel-enum-2.2.0 branch 2 times, most recently from 4ba10da to 7d38c08 Compare October 12, 2021 12:32
@dependabot dependabot bot force-pushed the dependabot/composer/bensampo/laravel-enum-2.2.0 branch 4 times, most recently from 681b78c to a9a7a2e Compare October 30, 2021 07:32
@dependabot dependabot bot force-pushed the dependabot/composer/bensampo/laravel-enum-2.2.0 branch from a9a7a2e to 8293ab1 Compare November 17, 2021 15:24
@dependabot dependabot bot force-pushed the dependabot/composer/bensampo/laravel-enum-2.2.0 branch 4 times, most recently from 0623c44 to e38f98d Compare November 27, 2021 11:26
@dependabot dependabot bot force-pushed the dependabot/composer/bensampo/laravel-enum-2.2.0 branch 3 times, most recently from 5f83bc2 to edb3655 Compare December 10, 2021 18:37
@dependabot dependabot bot force-pushed the dependabot/composer/bensampo/laravel-enum-2.2.0 branch from edb3655 to 16ede9c Compare January 11, 2022 11:58
@dependabot dependabot bot force-pushed the dependabot/composer/bensampo/laravel-enum-2.2.0 branch 2 times, most recently from 4e948ff to f1e016d Compare January 24, 2022 10:43
@dependabot dependabot bot force-pushed the dependabot/composer/bensampo/laravel-enum-2.2.0 branch 4 times, most recently from e8386f7 to d6f3ba5 Compare February 23, 2022 10:17
@dependabot dependabot bot force-pushed the dependabot/composer/bensampo/laravel-enum-2.2.0 branch 3 times, most recently from e8f667d to 69910e1 Compare May 17, 2022 12:47
@dependabot dependabot bot force-pushed the dependabot/composer/bensampo/laravel-enum-2.2.0 branch from 69910e1 to d821ddd Compare May 30, 2022 10:29
@dependabot dependabot bot force-pushed the dependabot/composer/bensampo/laravel-enum-2.2.0 branch 2 times, most recently from 3d76ba4 to eae4476 Compare July 1, 2022 10:43
@dependabot dependabot bot force-pushed the dependabot/composer/bensampo/laravel-enum-2.2.0 branch from eae4476 to d40a77c Compare July 14, 2022 11:18
@dependabot dependabot bot force-pushed the dependabot/composer/bensampo/laravel-enum-2.2.0 branch 2 times, most recently from 6c0580c to e8d715f Compare October 13, 2022 12:27
@dependabot dependabot bot force-pushed the dependabot/composer/bensampo/laravel-enum-2.2.0 branch from e8d715f to 978b6ce Compare October 17, 2022 16:39
@dependabot dependabot bot force-pushed the dependabot/composer/bensampo/laravel-enum-2.2.0 branch from 978b6ce to aee9bdf Compare December 13, 2022 21:52
@dependabot dependabot bot force-pushed the dependabot/composer/bensampo/laravel-enum-2.2.0 branch from aee9bdf to a797192 Compare December 22, 2022 18:40
@dependabot dependabot bot force-pushed the dependabot/composer/bensampo/laravel-enum-2.2.0 branch from a797192 to 7ac654d Compare January 28, 2023 08:00
@dependabot dependabot bot force-pushed the dependabot/composer/bensampo/laravel-enum-2.2.0 branch from 7ac654d to 417b769 Compare February 10, 2023 17:17
@dependabot dependabot bot force-pushed the dependabot/composer/bensampo/laravel-enum-2.2.0 branch from 417b769 to da53f34 Compare March 9, 2023 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file php Pull requests that update Php code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant