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

prevent notice if $arguments is an empty array #378

Merged
merged 1 commit into from
Apr 14, 2017

Conversation

wodka
Copy link
Contributor

@wodka wodka commented Apr 14, 2017

I am targeting this branch, because this error was introduced in the 3.3 version.

Closes #374

Subject

if services are defined through annotations the arguments are modified later -> therefore the $arguments variable is an empty array at this point. which in return causes the error if [0] is accessed

Changelog

# Fixed
- a notice that appeared when defining blocks through annotations

Copy link
Contributor

@greg0ire greg0ire left a comment

Choose a reason for hiding this comment

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

Your PR subject

if services are defined through annotations the arguments are modified later -> therefore the $arguments variable is an empty array at this point. which in return causes the error if [0] is accessed

would make a great commit message. Please amend and force push

sry - I do not understand what you mean? The PR Subject is the same as the commit message I used. Should I change that to something else?

  1. git commit --amend
  2. copy paste that below the commit message subject, into the commit message body
  3. git push --force

if a service is defined through annotation the arguments are set later. Therefore the $arguments variable is empty at this point. Which in return causes the notice if [0] is accessed
@wodka
Copy link
Contributor Author

wodka commented Apr 14, 2017

Changed the commit - I modified the message and added the whole subject to the optional message

edit: I deleted the previous comment because I realized what you meant. thanks :)

@greg0ire
Copy link
Contributor

edit: I deleted the previous comment because I realized what you meant. thanks :)

I thought it was a bug, didn't see the change ^^

Great job!

@jordisala1991
Copy link
Member

It should contain a changelog, this is a patch right?

@greg0ire
Copy link
Contributor

I drafted one, you can improve it if you want @wodka

@greg0ire greg0ire merged commit c6c0702 into sonata-project:3.x Apr 14, 2017
@wodka
Copy link
Contributor Author

wodka commented Apr 14, 2017

changelog entry is fine for me this way, thank you!

@jordisala1991
Copy link
Member

Changed: services -> blocks

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.

None yet

5 participants