currentId === null) { return; } if ($value !== null && (int) $value === $this->currentId) { $fail(__('validation.not_self_parent')); } } }