Drop the tombstone eviction rule; RemoveExpiredLiveFlights already reaps those PIREPs and the completed rule picks up what it soft-deletes. Simplify evict(). Revert RemoveExpiredLiveFlights to its original body with only the setting name changed, and revert PirepResource, dropping the scope and resource class added alongside them. Also: class_alias by string so PHPStan can analyse the deprecated enum alias, re-check updated_at at delete time, preserve pirep_id nullability in the collation ALTER, and cut the comments back.
15 lines
347 B
PHP
15 lines
347 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
/**
|
|
* A class_alias, not a second enum, so PirepStatus::TAXI and PirepPhase::TAXI are
|
|
* the same case. Composer resolves this path via PSR-4 and the alias defines the name.
|
|
*
|
|
* @deprecated Use \App\Enums\PirepPhase instead.
|
|
*/
|
|
|
|
namespace App\Enums;
|
|
|
|
class_alias(PirepPhase::class, 'App\\Enums\\PirepStatus');
|