Skip to content
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

PHP8.4 support #179

Merged
merged 1 commit into from
Feb 1, 2025
Merged

Conversation

sofiiakulish
Copy link

No description provided.

if (($parameter->getDefaultValue() instanceof ValueGenerator) &&
$parameter->getDefaultValue()->getValue() === null && $parameter->getType() !== null &&
substr($parameter->getType(), 0, 1) !== '?') {
$parameter->setType('?' . $parameter->getType());
Copy link
Author

@sofiiakulish sofiiakulish Jan 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To generate

public function setSomething(?array $something = null)

instead of

public function setSomething(array $something = null)

@goetas goetas merged commit 4e71e22 into goetas-webservices:master Feb 1, 2025
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.

2 participants