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

#101 - lowercase keywords #104

Merged
merged 2 commits into from
Sep 25, 2023
Merged

#101 - lowercase keywords #104

merged 2 commits into from
Sep 25, 2023

Conversation

Baakoma
Copy link
Member

@Baakoma Baakoma commented Sep 24, 2023

This should close #101

Before

Class LowercaseKeywordsTest Extends ObjectOperatorTest
{
    PUBLIC function test(): int
    {
        Foreach (range(1, 5) as $item) {
            IF ($item > 3) {
                Return 0;
            }
        }

        RETURN 5;
    }

    public function testAnonymousClass(): void
    {
        new Class() EXTENDS LowercaseKeywordsTest {};
    }
}

After

class LowercaseKeywordsTest extends ObjectOperatorTest
{
    public function test(): int
    {
        foreach (range(1, 5) as $item) {
            if ($item > 3) {
                return 0;
            }
        }

        return 5;
    }

    public function testAnonymousClass(): void
    {
        new class() extends LowercaseKeywordsTest {};
    }
}

@Baakoma Baakoma merged commit 5059c63 into main Sep 25, 2023
3 checks passed
@Baakoma Baakoma deleted the #101-lowercase-keywords branch September 25, 2023 06:40
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.

Anonymous classes casing
3 participants