+
Skip to content

Conversation

andreypostal
Copy link
Owner

You can now define a default value for an item during the hydration phase by using:

#[Item(default: 'my default value')]

Example of usage can be checked on:
/tests/Utils/TestObject.php

@andreypostal andreypostal merged commit 796d45b into main Jul 23, 2025
1 check passed
@andreypostal andreypostal deleted the feature/allow-defining-default-value branch July 23, 2025 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载