mirror of
https://github.com/shlinkio/shlink.git
synced 2025-03-14 04:00:57 +03:00
Fixed constant assignment on enum which is not valid for PHP 8.1
This commit is contained in:
parent
3e98485c8b
commit
edaf999bf5
1 changed files with 4 additions and 6 deletions
|
@ -2,16 +2,14 @@
|
|||
|
||||
namespace Shlinkio\Shlink\Core\Util;
|
||||
|
||||
use Fig\Http\Message\StatusCodeInterface;
|
||||
|
||||
use function Functional\contains;
|
||||
|
||||
enum RedirectStatus: int
|
||||
{
|
||||
case STATUS_301 = StatusCodeInterface::STATUS_MOVED_PERMANENTLY;
|
||||
case STATUS_302 = StatusCodeInterface::STATUS_FOUND;
|
||||
case STATUS_307 = StatusCodeInterface::STATUS_TEMPORARY_REDIRECT;
|
||||
case STATUS_308 = StatusCodeInterface::STATUS_PERMANENT_REDIRECT;
|
||||
case STATUS_301 = 301; // StatusCodeInterface::STATUS_MOVED_PERMANENTLY;
|
||||
case STATUS_302 = 302; // StatusCodeInterface::STATUS_FOUND;
|
||||
case STATUS_307 = 307; // StatusCodeInterface::STATUS_TEMPORARY_REDIRECT;
|
||||
case STATUS_308 = 308; // StatusCodeInterface::STATUS_PERMANENT_REDIRECT;
|
||||
|
||||
public function allowsCache(): bool
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue