mirror of
https://github.com/standardebooks/web.git
synced 2025-07-19 12:54:48 -04:00
Fix newsletter type hints
This commit is contained in:
parent
b3a9d86828
commit
db35e380c0
2 changed files with 3 additions and 3 deletions
|
@ -14,7 +14,7 @@ class NewsletterSubscription{
|
|||
public ?int $UserId = null;
|
||||
public DateTimeImmutable $Created;
|
||||
|
||||
protected ?User $_User;
|
||||
protected User $_User;
|
||||
protected string $_Url;
|
||||
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ use function Safe\session_unset;
|
|||
|
||||
session_start();
|
||||
|
||||
/** @var NewsletterSubscription $exception */
|
||||
/** @var NewsletterSubscription $subscription */
|
||||
$subscription = $_SESSION['subscription'] ?? new NewsletterSubscription();
|
||||
/** @var ?\Exception $exception */
|
||||
$exception = $_SESSION['exception'] ?? null;
|
||||
|
@ -34,7 +34,7 @@ if($exception){
|
|||
<input type="text" name="automationtest" value="" maxlength="80" />
|
||||
</label>
|
||||
<label>Your email address
|
||||
<input type="email" name="email" value="<?= Formatter::EscapeHtml($subscription->User?->Email) ?>" maxlength="80" required="required" />
|
||||
<input type="email" name="email" value="<?= Formatter::EscapeHtml($subscription->User->Email ?? '') ?>" maxlength="80" required="required" />
|
||||
</label>
|
||||
<label class="captcha">
|
||||
Type the letters in the <abbr class="acronym">CAPTCHA</abbr> image
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue