Language: PHP
Label: vulnerable
CWE: CWE-754 \u2014 Improper Check for Unusual or Exceptional Conditions
The product does not check or incorrectly checks for unusual or exceptional conditions that are not expected to occur frequently during day to day operation of the product.

Code:
    public function getValidEmails()
    {
        return [
            // old domains
            ['test@example.de'],
            ['test@example.com'],
            ['test@example.org'],

            // new released domains
            ['test@example.berlin'],
            ['test@example.email'],
            ['test@example.systems'],

            // new non released domains
            ['test@example.active'],
            ['test@example.love'],
            ['test@example.video'],
            ['test@example.app'],
            ['test@example.shop'],

            ['disposable.style.email.with+symbol@example.com'],
            ['other.email-with-dash@example.com'],

            // We will ignore quoted string local parts
            // this would blow up the simple regex method
            // array('"much.more unusual"@example.com'),
        ];
    }