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

Update extend-product-page.md #1791

Open
wants to merge 1 commit into
base: 8.x
Choose a base branch
from
Open

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