Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#43 - named parameters fixer #118

Merged
merged 3 commits into from
Apr 8, 2024
Merged

#43 - named parameters fixer #118

merged 3 commits into from
Apr 8, 2024

Conversation

kamilpiech97
Copy link
Member

Should close #43.
Added named parameters fixer and tests for that fixer.

Before:

<?php

$class = new ErrorsThresholdExceeded(
    requestsNumber :$requests,
    errorsNumber   :  $errors,
    percentage     :          $percentage,
);

$result = $reader->merge($merge, new Api(), flag     :   CONSTANT);

After:

<?php

declare(strict_types=1);

$class = new ErrorsThresholdExceeded(
    requestsNumber: $requests,
    errorsNumber: $errors,
    percentage: $percentage,
);

$result = $reader->merge($merge, new Api(), flag: CONSTANT);

@kamilpiech97 kamilpiech97 merged commit f39ca63 into main Apr 8, 2024
3 checks passed
@kamilpiech97 kamilpiech97 deleted the #43-named-parameters branch April 8, 2024 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Standardize named parameters spacing
3 participants