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

Allow @Desc to appear earlier in the file #233

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

nickygerritsen
Copy link

I created a PR that allows us to add @Desc earlier on: it now takes the last @Desc found and links it to the trans.

This can be useful for example in the following case:

/** @Desc("Baz Qux") */
$this->session->setFlash('baz', $this->translator->trans('text.baz_qux'));

This does not work with the "old" code but does in my fork.

I added some tests to test for this.

@Nyholm Nyholm added the Parser label Mar 24, 2016
Nicky Gerritsen added 2 commits April 15, 2016 14:42
* upstream/master: (87 commits)
  Set Loggers on NodeVisitors at construct time
  Added types in doc blocks
  added docblocks, minor changes here and there, removal of unused properties/variables
  Updated changelog prior release.
  Update changelog
  Set xlf as default file format
  Inverting key and value of a choice type depending of choices_as_values strategy
  Added tests for Extension, compiler passes, controller and config
  Fix logger interface calls
  Symfony 3.0 compat
  update php-parser to either 1.4.1 or 2.x
  Changing the default answer to "Tests pass?" to "no"
  Removed installation instructions for Symfony 2.0.x
  Prepare for release 1.2.1
  getting rid of the twig text extension
  transchoiceWithDefault on SF2.3
  Make sure to require symfony/symfony instead of symfony/framework-bundle
  remove unused injected container
  remove unused use statement
  injected request into controller action
  ...
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