Closed ili101 closed 10 months ago
There we go, this one was easy :)
Almost, now they aren't removed but it's changing them to lowercase
<?php
enum Status {
case PUBLIC;
case PROTECTED;
case PRIVATE;
}
enum Status: int {
case Public = 0;
case Foo = 1;
case Protected = 2;
case Private = 3;
}
<?php
enum Status {
case public;
case protected;
case private;
}
enum Status: int {
case public = 0;
case Foo = 1;
case protected = 2;
case private = 3;
}
Also in here space removed public=>
<?php
enum Status: int {
case public = 0;
case foo = 1;
public function getStr(): string
{
return match ($this) {
self::public => 'a',
self::foo => 'b',
default => null,
};
}
}
<?php
enum Status: int {
case public = 0;
case foo = 1;
public function getStr(): string
{
return match ($this) {
self::public=> 'a',
self::foo => 'b',
default => null,
};
}
}
Thanks @ili101 , new version uploaded
LGTM🙏
Hi (: Before:
After:
Expected: no change