Skip to content

Commit

Permalink
Merge branch '2.1'
Browse files Browse the repository at this point in the history
* 2.1:
  fixed CS
  added doc comments
  added doc comments
  [Validator] Updated swedish translation
  Update src/Symfony/Component/Validator/Resources/translations/validators.de.xlf
  [2.1] Exclude tests from zips via gitattributes
  [HttpKernel][Translator] Fixed type-hints
  Updated lithuanian validation translation
  [DomCrawler] Allows using multiselect through Form::setValues().
  [Translation] forced the catalogue to be regenerated when a resource is added (closes symfony/translation#1)
  Unit test for patched method OptionsResolver::validateOptionValues().
  validateOptionValues throw a notice if an allowed value is set and the corresponding option isn't.
  [Form] Hardened code of ViolationMapper against errors
  [HttpFoundation] Fixed #5611 - Request::splitHttpAcceptHeader incorrect result order.
  [Form] Fixed negative index access in PropertyPathBuilder
  Update src/Symfony/Component/Validator/Resources/translations/validators.ro.xlf

Conflicts:
	src/Symfony/Component/DomCrawler/Form.php
	src/Symfony/Component/Process/Process.php
  • Loading branch information
fabpot committed Jul 12, 2015
2 parents 05dce7b + 56dca00 commit 0f7fa75
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Tests/ export-ignore
phpunit.xml.dist export-ignore
4 changes: 2 additions & 2 deletions Loader/XliffFileLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function load($resource, $locale, $domain = 'messages')
*
* @param string $file
*
* @return SimpleXMLElement
* @return \SimpleXMLElement
*/
private function parseFile($file)
{
Expand Down Expand Up @@ -109,7 +109,7 @@ private function parseFile($file)
/**
* Returns the XML errors of the internal XML parser
*
* @return array An array of errors
* @return array An array of errors
*/
private function getXmlErrors($internalErrors)
{
Expand Down
2 changes: 1 addition & 1 deletion MessageSelector.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class MessageSelector
*
* @return string
*
* @throws InvalidArgumentException
* @throws \InvalidArgumentException
*
* @api
*/
Expand Down
2 changes: 2 additions & 0 deletions Translator.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ public function addLoader($format, LoaderInterface $loader)
public function addResource($format, $resource, $locale, $domain = 'messages')
{
$this->resources[$locale][] = array($format, $resource, $domain);

unset($this->catalogues[$locale]);
}

/**
Expand Down

0 comments on commit 0f7fa75

Please sign in to comment.