Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 0
feat(stub): Add enums for backed integer, backed string, and unit values in the Stub namespace.#24
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
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| <?php | ||
| declare(strict_types=1); | ||
| namespace PHPForge\Support\Stub; | ||
| /** | ||
| * Stub enum for backed integer values. | ||
| * | ||
| * Provides deterministic values required by the test suite. | ||
| * | ||
| * @copyright Copyright (C) 2026 Terabytesoftw. | ||
| * @license https://opensource.org/license/bsd-3-clause BSD 3-Clause License. | ||
| */ | ||
| enum BackedInteger: int | ||
| { | ||
| /** | ||
| * Type representing a value. | ||
| */ | ||
| case VALUE = 1; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| <?php | ||
| declare(strict_types=1); | ||
| namespace PHPForge\Support\Stub; | ||
| /** | ||
| * Stub enum for backed string values. | ||
| * | ||
| * Provides deterministic values required by the test suite. | ||
| * | ||
| * @copyright Copyright (C) 2026 Terabytesoftw. | ||
| * @license https://opensource.org/license/bsd-3-clause BSD 3-Clause License. | ||
| */ | ||
| enum BackedString: string | ||
| { | ||
| /** | ||
| * Type representing a value. | ||
| */ | ||
| case VALUE = 'value'; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| <?php | ||
| declare(strict_types=1); | ||
| namespace PHPForge\Support\Stub; | ||
| /** | ||
| * Stub enum for unit values. | ||
| * | ||
| * Provides deterministic values required by the test suite. | ||
| * | ||
| * @copyright Copyright (C) 2026 Terabytesoftw. | ||
| * @license https://opensource.org/license/bsd-3-clause BSD 3-Clause License. | ||
| */ | ||
| enum Unit | ||
| { | ||
| /** | ||
| * Type representing a value. | ||
| */ | ||
| case value; | ||
| } | ||
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.