As mentioned in the title above, the problem should be clear.

$variable = new Classs(
param1: 'value',
param2: 123
);

functionnn(
a: 1321321,
b: 454968,
c: 84798789,
d: 878987
);

The indentation does not work here properly, becaue in my opinion there should be an indentation before each parameter as there is one when not using named parameters (leaving away the "name:").

    In the code provided, there is no standard indentation for named parameters in PHP. The code may be formatted and indented according to personal preferences or team standards. However, it is common to align the parameters vertically for better readability, as shown below:

    less
    Copy code
    $variable = new Classs(
    param1: 'value',
    param2: 123
    );

    functionnn(
    a: 1321321,
    b: 454968,
    c: 84798789,
    d: 878987
    );
    This helps distinguish the named parameters and their values, making the code easier to read and understand.

      Hi Gehmasse,

      You're right! This should get indented, but it's not. We will fix it!

      Thank you.

        5 days later

        The fix will be in the next pre-release.

        Thank you!

          Write a Reply...