<?php
namespace Drupal\auth0\Event;

use Symfony\Component\EventDispatcher\Event;

/**
 * User signup event.
 */
class Auth0UserSignupEvent extends Event {
  
  const NAME = 'auth0.signup';

  protected $user;
  protected $auth0Profile;

  /**
   * Initialize the event.
   */
  public function __construct($user, $auth0Profile) {
    $this->user = $user;
  }

  /**
   * Get the drupal user.
   */
  public function getUser() {
    return $this->user;
  }

  /**
   * Get the Auth0 profile.
   */
  public function getAuth0Profile() {
    return $this->auth0Profile;
  }

}

<?php
namespace Drupal\auth0\Event;

use Symfony\Component\EventDispatcher\Event;

/**
 * User signup event.
 */
class Auth0UserSignupEvent extends Event {
  
  const NAME = 'auth0.signup';

  /**
   * @var \Drupal\user\UserInterface
   */
  protected $user;

  /**
   * @var array
   */
  protected $auth0Profile;

  /**
   * Initialize the event.
   * @param \Drupal\user\UserInterface $user
   * @param array $auth0Profile
   */
  public function __construct($user, $auth0Profile) {
    $this->user = $user;
  }

  /**
   * Get the drupal user.
   * @return \Drupal\user\UserInterface
   */
  public function getUser() {
    return $this->user;
  }

  /**
   * Get the Auth0 profile.
   * @return array
   */
  public function getAuth0Profile() {
    return $this->auth0Profile;
  }

}

Add type hinting to the sign-up event.
Add type hinting to the sign-up event.