Skip to content

Commit 8dfeffb

Browse files
committed
Refactor EnumCast property and reorder test method
Changed EnumCast's $enum property from protected to private for better encapsulation. Moved the testDriversAliases method in ConfigurationUrlParserTest to the end of the class for improved test organization.
1 parent 9e28088 commit 8dfeffb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Casting/EnumCast.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ final class EnumCast implements Castable
2121
/**
2222
* @param class-string<UnitEnum|BackedEnum> $enum
2323
*/
24-
public function __construct(protected string $enum)
24+
public function __construct(private string $enum)
2525
{
2626
}
2727

0 commit comments

Comments
 (0)