Small contribution - code readability improvements (#306)

* Some code improvements - tests same as beginning

* isUTF8Invalid returns a boolean

* Changes for tests passed

* Revert change + scrutinizer to flaky

* Null coalescing on token to return a null token

* Psalm pass and PHPunit too (php 7.4)

* Minor change to set lookahead to nullToken
This commit is contained in:
Julien Gidel
2021-11-20 22:34:12 +01:00
committed by GitHub
parent 5cc04719d0
commit 007bfd424e
9 changed files with 143 additions and 160 deletions
-1
View File
@@ -3,7 +3,6 @@
namespace Egulias\EmailValidator;
use Egulias\EmailValidator\Parser;
use Egulias\EmailValidator\EmailLexer;
use Egulias\EmailValidator\Result\Result;
use Egulias\EmailValidator\Parser\IDLeftPart;
use Egulias\EmailValidator\Parser\IDRightPart;