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
+78-42
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).
- 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.
<small>Generated by <ahref="https://github.com/sebastianbergmann/php-code-coverage" target="_top">php-code-coverage 9.2.10</a> using <ahref="https://secure.php.net/" target="_top">PHP 8.1.2</a> and <ahref="https://phpunit.de/">PHPUnit 9.5.13</a> at Tue Feb 15 18:46:59 UTC 2022.</small>
186
+
<small>Generated by <ahref="https://github.com/sebastianbergmann/php-code-coverage" target="_top">php-code-coverage 9.2.10</a> using <ahref="https://secure.php.net/" target="_top">PHP 8.1.2</a> and <ahref="https://phpunit.de/">PHPUnit 9.5.13</a> at Tue Feb 15 19:12:57 UTC 2022.</small>
Copy file name to clipboardExpand all lines: test_coverage/html/dashboard.html
+1-1
Original file line number
Diff line number
Diff line change
@@ -135,7 +135,7 @@ <h3>Project Risks</h3>
135
135
<footer>
136
136
<hr/>
137
137
<p>
138
-
<small>Generated by <ahref="https://github.com/sebastianbergmann/php-code-coverage" target="_top">php-code-coverage 9.2.10</a> using <ahref="https://secure.php.net/" target="_top">PHP 8.1.2</a> and <ahref="https://phpunit.de/">PHPUnit 9.5.13</a> at Tue Feb 15 18:46:59 UTC 2022.</small>
138
+
<small>Generated by <ahref="https://github.com/sebastianbergmann/php-code-coverage" target="_top">php-code-coverage 9.2.10</a> using <ahref="https://secure.php.net/" target="_top">PHP 8.1.2</a> and <ahref="https://phpunit.de/">PHPUnit 9.5.13</a> at Tue Feb 15 19:12:57 UTC 2022.</small>
Copy file name to clipboardExpand all lines: test_coverage/html/index.html
+1-1
Original file line number
Diff line number
Diff line change
@@ -110,7 +110,7 @@ <h4>Legend</h4>
110
110
<spanclass="success"><strong>High</strong>: 90% to 100%</span>
111
111
</p>
112
112
<p>
113
-
<small>Generated by <ahref="https://github.com/sebastianbergmann/php-code-coverage" target="_top">php-code-coverage 9.2.10</a> using <ahref="https://secure.php.net/" target="_top">PHP 8.1.2</a> and <ahref="https://phpunit.de/">PHPUnit 9.5.13</a> at Tue Feb 15 18:46:59 UTC 2022.</small>
113
+
<small>Generated by <ahref="https://github.com/sebastianbergmann/php-code-coverage" target="_top">php-code-coverage 9.2.10</a> using <ahref="https://secure.php.net/" target="_top">PHP 8.1.2</a> and <ahref="https://phpunit.de/">PHPUnit 9.5.13</a> at Tue Feb 15 19:12:57 UTC 2022.</small>
0 commit comments