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

Not importing traits on PHP native enums #425

Closed
d8vjork opened this issue Oct 25, 2023 · 1 comment
Closed

Not importing traits on PHP native enums #425

d8vjork opened this issue Oct 25, 2023 · 1 comment

Comments

@d8vjork
Copy link

d8vjork commented Oct 25, 2023

Having the following PHP enum as an example:

<?php

namespace App\Enums;

use OpenSoutheners\LaravelHelpers\Enums\Description;

enum UserWorkspaceRole: int
{
    use GetsAttributes; // this doesn't

    #[Description('Viewer')] // this import works fine
    case Viewer = 1;
}

Just try with whatever trait you have it fails as long as structure is of type enum (not happening to class)

OS: MacOS Sonoma (14.0)
Extension version: v1.40.14103 (stable)

@jakubmisek
Copy link
Member

Thank you! fixed and preparing the update.

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

No branches or pull requests

2 participants