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
When using 'ErickSkrauch/align_multiline_parameters' => ['variables' => true] we get an unexpected style fixing for classes with promoted properties without a type:
Before:
/** * @template T */class Diff
{
/** * @param T $was * @param T $expected */publicfunction__construct(
public$was,
public$expected,
) {
}
}
After:
/** * @template T */class Diff
{
/** * @param T $was * @param T $expected */publicfunction__construct(
public$was,
public$expected,
) {
}
}
Expected (No change):
/** * @template T */class Diff
{
/** * @param T $was * @param T $expected */publicfunction__construct(
public$was,
public$expected,
) {
}
}
The text was updated successfully, but these errors were encountered:
For some reason, I thought property promotion was impossible without specifying a type. But I double-checked and no, the type is optional. There is definitely an error here. I will fix it soon.
When using
'ErickSkrauch/align_multiline_parameters' => ['variables' => true]
we get an unexpected style fixing for classes with promoted properties without a type:Before:
After:
Expected (No change):
The text was updated successfully, but these errors were encountered: