Skip to content

Conversation

soyuka
Copy link
Member

@soyuka soyuka commented Jan 24, 2023

private function addGlobalDefaults(ApiResource|Operation $operation): ApiResource|Operation
{
$extraProperties = [];
$extraProperties = $this->defaults['extra_properties'] ?? [];
Copy link
Member

Choose a reason for hiding this comment

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

I don't think ?? [] is needed, but it's nitpicking.

Copy link
Member Author

Choose a reason for hiding this comment

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

yes but because we can't be sure no one is using this trait out of our bundle I think its safer like this

@soyuka soyuka merged commit a5fb2aa into api-platform:3.1 Jan 26, 2023
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