Skip to content

Conversation

@krzysztofkozyra021
Copy link
Contributor

@krzysztofkozyra021 krzysztofkozyra021 commented Aug 22, 2025

This should close #145

Before:

<?php

declare(strict_types=1);

enum Status: String
{
    case Active = "active";
}

enum Priority: Int
{
    case High = 1;
}

After:

<?php

declare(strict_types=1);

enum Status: string
{
    case Active = "active";
}

enum Priority: int
{
    case High = 1;
}

PHP does not recognize String or Int as valid scalar types; only lowercase string and int are allowed.

@EwelinaSkrzypacz EwelinaSkrzypacz merged commit cdac0ca into blumilksoftware:main Aug 25, 2025
4 checks passed
@krzysztofkozyra021 krzysztofkozyra021 deleted the 145-user-native-type-declaration-casing branch August 25, 2025 10:28
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.

User native type declaration casing

4 participants