[PSR-12] Question about the "!" writing in if conditions

65 views
Skip to first unread message

Prashant Patil

unread,
Sep 18, 2021, 7:12:02 AM9/18/21
to PHP Framework Interoperability Group
Please add the example of "!" use in if condition:

Which one is correct?
if (! isset($data))
{
}
-----
if (!isset($data))
{
}

Alessandro Lai

unread,
Sep 21, 2021, 11:10:33 AM9/21/21
to PHP Framework Interoperability Group
This is intentionally left undefined, since the previous PSR too.
Reply all
Reply to author
Forward
0 new messages