mirror of
https://github.com/pterodactyl/panel.git
synced 2026-06-03 09:17:17 -05:00
25 lines
537 B
PHP
25 lines
537 B
PHP
<?php
|
|
|
|
namespace Pterodactyl\Observers;
|
|
|
|
use Pterodactyl\Models\EggVariable;
|
|
|
|
class EggVariableObserver
|
|
{
|
|
public function creating(EggVariable $variable): void
|
|
{
|
|
// @phpstan-ignore-next-line property.notFound
|
|
if ($variable->field_type) {
|
|
unset($variable->field_type);
|
|
}
|
|
}
|
|
|
|
public function updating(EggVariable $variable): void
|
|
{
|
|
// @phpstan-ignore-next-line property.notFound
|
|
if ($variable->field_type) {
|
|
unset($variable->field_type);
|
|
}
|
|
}
|
|
}
|