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

more test #1

Merged
merged 1 commit into from Dec 14, 2021
Merged

more test #1

merged 1 commit into from Dec 14, 2021

Conversation

SpacePossum
Copy link

please consider these tweaks and I think your PR on the main repo is good to go 👍 thanks for all the work!

@paulbalandan
Copy link
Owner

Thanks!

@paulbalandan paulbalandan merged commit 1656385 into paulbalandan:tokens-insert-slices-multiple Dec 14, 2021
@SpacePossum SpacePossum deleted the tokens-insert-slices-multiple-tests branch December 14, 2021 06:42
paulbalandan pushed a commit that referenced this pull request Dec 15, 2021
…(paulbalandan)

This PR was merged into the master branch.

Discussion
----------

GetClassToClassKeywordFixer - introduction

```
$ php php-cs-fixer describe get_class_to_class_keyword`

Description of get_class_to_class_keyword rule.
Replace `get_class` calls on object variables with class keyword syntax.

Fixer applying this rule is risky.
Risky if the `get_class` function is overridden.

Fixing examples:
 * Example #1.
   ---------- begin diff ----------
   --- Original
   +++ New
   @@ -1,2 +1,2 @@
    <?php
   -get_class($a);
   +$a::class;

   ----------- end diff -----------

 * Example PHP-CS-Fixer#2.
   ---------- begin diff ----------
   --- Original
   +++ New
   @@ -1,4 +1,4 @@
    <?php

    $date = new \DateTimeImmutable();
   -$class = get_class($date);
   +$class = $date::class;

   ----------- end diff -----------
```

Commits
-------

ee541a6 GetClassToClassKeywordFixer - introduction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants