Skip to content

Conversation

Klemart3D
Copy link
Contributor

Some improvements & refactoring to follow PS coding standards.

Questions Answers
Branch? 8.x
Description? Some improvements & refactoring to follow PS coding standards.
Fixed ticket? No

Some improvements & refactoring to follow PS coding standards.
@github-actions github-actions bot added the 8.x label Mar 11, 2024
Copy link
Contributor

@matthieu-rolland matthieu-rolland left a comment

Choose a reason for hiding this comment

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

just one small feedback 👍

@@ -515,7 +514,7 @@ Finally, add this `CustomTabType` to the `$productFormBuilder` variable in your

```php
/**
* @param int|null $productId
* @param int $productId
Copy link
Contributor

Choose a reason for hiding this comment

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

there's something fishy in this example, $productId is casted as an integer, but in the function it's used as a ProductId value object:

$idValue = $productId ? $productId->getValue() : null;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants