Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
addObsoleteWarnings example
$this
->
addTagWarnings
(
)
;
$IPv6TAG
= false;
$addressLiteral
= '';
do
{
if
(
$this
->lexer->current->
isA
(
EmailLexer::C_NUL
)
)
{
return
new
InvalidEmail
(
new
ExpectingDTEXT
(
)
,
$this
->lexer->current->value
)
;
}
$this
->
addObsoleteWarnings
(
)
;
if
(
$this
->lexer->
isNextTokenAny
(
array
(
EmailLexer::S_OPENBRACKET, EmailLexer::S_OPENBRACKET
)
)
)
{
return
new
InvalidEmail
(
new
ExpectingDTEXT
(
)
,
$this
->lexer->current->value
)
;
}
if
(
$this
->lexer->
isNextTokenAny
(
array
(
EmailLexer::S_HTAB, EmailLexer::S_SP, EmailLexer::CRLF
)
)
)
{
$this
->warnings
[
CFWSWithFWS::CODE
]
=
new
CFWSWithFWS
(
)
;
$this
->
parseFWS
(
)
;
}