When the argument list is split across multiple lines, the closing parenthesis and opening brace MUST be placed together on their own line with one space between them.
function (
string $foo,
string $bar,
int $baz
): string {
echo 'foo';
}
// 1TBS
element {} // If empty
element {
// If not empty
}
// Ergo
element {
}
element {
}
--
You received this message because you are subscribed to the Google Groups "PHP Framework Interoperability Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to php-fig+u...@googlegroups.com.
To post to this group, send email to php...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/66f8973f-9dae-4ef8-bc18-fc4c1e94bd9a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "PHP Framework Interoperability Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to php-fig+u...@googlegroups.com.
To post to this group, send email to php...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/ee5c58a7-e556-4cea-b761-fc3683541e14%40googlegroups.com.
function (
string $foo,
string $bar,
int $baz
): string {
echo 'foo';
}
function (
string $foo,
string $bar,
int $baz
): string
{
echo 'foo';
}
--
You received this message because you are subscribed to the Google Groups "PHP Framework Interoperability Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to php-fig+u...@googlegroups.com.
To post to this group, send email to php...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/98bc7ef8-33e2-4c0b-b68f-b5b7b39284be%40googlegroups.com.