Likelihood Of Impact: High
This package now requires PHP 8.1.0 or greater.
Update the following dependency in your application's composer.json
file:
nickbeen/rick-and-morty-api-php
to^2.0
In addition, this will remove the myclabs/php-enum
dependency as PHP 8.1 adds support for native enumerations.
Likelihood Of Impact: High
Existing references to either the Gender
or Status
object need to be replaced by their new Enumeration object.
Enum cases are in PascalCase styling as recommended by PER Coding Style 2.0.
Old value in 1.0 | New value in 2.0 |
---|---|
Gender::FEMALE() | Gender::Female |
Gender::GENDERLESS() | Gender::Genderless |
Gender::MALE() | Gender::Male |
Gender::UNKNOWN() | Gender::Unknown |
Old value in 1.0 | New value in 2.0 |
---|---|
Status::ALIVE() | Status::Alive |
Status::DEAD() | Status::Dead |
Status::UNKNOWN() | Status:: Unknown |