Skip to content

Commit

Permalink
Merge branch '2.0' into 2.1
Browse files Browse the repository at this point in the history
* 2.0:
  fixed CS
  added doc comments
  [HttpKernel][Translator] Fixed type-hints
  [Translation] forced the catalogue to be regenerated when a resource is added (closes symfony/translation#1)
  [HttpFoundation] Fixed #5611 - Request::splitHttpAcceptHeader incorrect result order.

Conflicts:
	src/Symfony/Component/Process/Process.php
	tests/Symfony/Tests/Component/HttpFoundation/RequestTest.php
  • Loading branch information
fabpot committed Jul 12, 2015
2 parents 3dd7a2d + b78f2ea commit 56dca00
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
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 56dca00

Please sign in to comment.