27cm
Repos
6
Followers
28
Following
85

A collection of awesome computer software.

2
1

Тут я записываю разные советы самому себе (лайфкаки), которые мне помогают жить, работать и получать от этого удовольствие.

2
0

Events

Про детей и зависимость

Created at 1 week ago
started
Created at 1 week ago
started
Created at 1 week ago
started
Created at 1 week ago
(binary_operator_spaces) Unexpected fix for anonymous functions

Bug report

Fixer binary_operator_spaces fix wrong operators around anonymous functions.

PHP CS Fixer 3.9.4 Grand Awaiting by Fabien Potencier and Dariusz Ruminski. PHP runtime: 8.0.10

Enabled binary_operator_spaces with 'operators' => ['=' => 'align_single_space', ...]

Code snippet that reproduces the problem

$vehicleType = function ($value) {
    $vehicleType = SomeClass::method($value);
    return $vehicleType->field;
};

binary_operator_spaces makes this:

$vehicleType     = function ($value) {
    $vehicleType = SomeClass::method($value);
    return $vehicleType->field;
};
Created at 2 months ago
Created at 2 months ago