You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 26, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+55-41Lines changed: 55 additions & 41 deletions
Original file line number
Diff line number
Diff line change
@@ -10,8 +10,8 @@ A [Composer](https://getcomposer.org/) package for [PHP](https://www.php.net/) t
10
10
The package so far provides;
11
11
12
12
- A handy trait that extends PHP's native Enum type
13
-
- Adds a new static `valueArray(): array` method that returns all values within an Enum as an equally typed array of Enum values
14
-
- Adds a new static `valueList(string $separator = ', '): string` method that returns all values within an Enum as a comma separated list string
13
+
- Adds a new static `UnitEnum::valueArray(): array` method that returns all values within an Enum as an equally typed array of Enum values
14
+
- Adds a new static `UnitEnum::valueList(string $separator = ', '): string` method that returns all values within an Enum as a comma separated list string
15
15
16
16
The package is available on Packagist as [othyn/php-enum-enhancements](https://packagist.org/packages/othyn/php-enum-enhancements).
@@ -290,6 +302,8 @@ Any and all project changes for releases should be documented below. Versioning
290
302
#### Changed
291
303
292
304
- SemVer verbiage and link change in the README.
305
+
- Change usage examples in the readme to instead utilise `var_dump` to demonstrate the resulting types within the array returned from `UnitEnum::valueArray()`.
306
+
- Utilised the `UnitEnum` base type within the docs in code examples where a test Enum is not present.
0 commit comments