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

Use new array syntax and make a few minor tweaks #7005

Closed
wants to merge 1 commit into from

Conversation

bocharsky-bw
Copy link
Contributor

No description provided.

));
return $this->render('lucky/number.html.twig', [
'number' => $number,
]);
Copy link
Member

Choose a reason for hiding this comment

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

I am against making this change. Using the short array syntax in newer branches makes merging branches up a nightmare.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@xabbuh Ah, it makes sense. So making changes to the new array syntax is pointless in docs? I'm just wondering for myself for the future.

Copy link
Member

Choose a reason for hiding this comment

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

@bocharsky-bw yes. I think we should wait till PHP <5.4 is completely dropped in Symfony (that'll be when 2.8 reaches end of maintainance). We can then safely do this change for all code examples in all branches at one go.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fair enough 👍

@@ -209,11 +209,11 @@ Bundles are registered in your ``app/AppKernel.php`` file (a rare PHP file in th
{
public function registerBundles()
{
$bundles = array(
$bundles = [
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@xabbuh Could we keep the new array syntax here? We already used it in Symfony SE v3.

Copy link
Member

Choose a reason for hiding this comment

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

I would say no. If we change the line below this or move the example in some way, we'll always get merge conflicts.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for the clarification!

@wouterj
Copy link
Member

wouterj commented Sep 23, 2016

I agree with @xabbuh on the short array syntax, but I like the other changes. 👍

If you can update this PR to remove the short array syntax, please do so. Otherwise, we'll do while merging.

Status: reviewed

@bocharsky-bw
Copy link
Contributor Author

Short array syntax reverted.

xabbuh added a commit that referenced this pull request Sep 24, 2016
…ky-bw)

This PR was submitted for the master branch but it was merged into the 2.7 branch instead (closes #7005).

Discussion
----------

Use new array syntax and make a few minor tweaks

Commits
-------

27c99cc Use new array syntax and make a few minor tweaks
@xabbuh
Copy link
Member

xabbuh commented Sep 24, 2016

Thank you @bocharsky-bw.

xabbuh added a commit that referenced this pull request Sep 24, 2016
…ky-bw)

This PR was submitted for the master branch but it was merged into the 3.1 branch instead (closes #7005).

Discussion
----------

Use new array syntax and make a few minor tweaks

Commits
-------

8588820 Use new array syntax and make a few minor tweaks
@xabbuh xabbuh closed this Sep 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants