65535 ) { CatalogValidator::invalid( $field, __( 'The note is too long.', 'abece-booking' ) ); } return '' === $value ? null : $value; } public static function login( int $user_id ): void { if ( $user_id < 1 || ! get_userdata( $user_id ) ) { throw new \ABeCe\Booking\Domain\CatalogException( 'abece_booking_login_required', __( 'Log in to manage your bookings.', 'abece-booking' ), 401 ); } } }