You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a function or method contains no statements or comments (such as an empty no-op implementation or when using constructor property promotion), then the body SHOULD be abbreviated as {} and placed on the same line as the previous symbol, separated by a space. For example:
class Point
{
publicfunction__construct(privateint$x, privateint$y) {}
// ...
}
class Point
{
publicfunction__construct(
publicreadonlyint$x,
publicreadonlyint$y,
) {}
}
Thank you.
The text was updated successfully, but these errors were encountered:
@prettier/plugin-php v0.22.2
Playground link
Input:
Output:
expected behaviour
There should not a blank line between
{
and}
According to PER CS 4.4 Methods and Functions:Thank you.
The text was updated successfully, but these errors were encountered: