"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/Symfony/Component/Translation/Extractor/PhpExtractor.php" between
symfony-4.4.14.tar.gz and symfony-4.4.15.tar.gz

About: Symfony is a web application framework for PHP projects. Source code (4.4 series).

PhpExtractor.php  (symfony-4.4.14):PhpExtractor.php  (symfony-4.4.15)
skipping to change at line 203 skipping to change at line 203
} }
/** /**
* Extracts trans message from PHP tokens. * Extracts trans message from PHP tokens.
* *
* @param array $tokens * @param array $tokens
* @param string $filename * @param string $filename
*/ */
protected function parseTokens($tokens, MessageCatalogue $catalog/*, string $filename*/) protected function parseTokens($tokens, MessageCatalogue $catalog/*, string $filename*/)
{ {
if (\func_num_args() < 3 && __CLASS__ !== static::class && __CLASS__ !== (new \ReflectionMethod($this, __FUNCTION__))->getDeclaringClass()->getName() && !$this instanceof \PHPUnit\Framework\MockObject\MockObject && !$this instanceof \Prophecy\Prophecy\ProphecySubjectInterface) { if (\func_num_args() < 3 && __CLASS__ !== static::class && __CLASS__ !== (new \ReflectionMethod($this, __FUNCTION__))->getDeclaringClass()->getName() && !$this instanceof \PHPUnit\Framework\MockObject\MockObject && !$this instanceof \Prophecy\Prophecy\ProphecySubjectInterface && !$this instanceof \Mockery\MockI nterface) {
@trigger_error(sprintf('The "%s()" method will have a new "string $f ilename" argument in version 5.0, not defining it is deprecated since Symfony 4. 3.', __METHOD__), \E_USER_DEPRECATED); @trigger_error(sprintf('The "%s()" method will have a new "string $f ilename" argument in version 5.0, not defining it is deprecated since Symfony 4. 3.', __METHOD__), \E_USER_DEPRECATED);
} }
$filename = 2 < \func_num_args() ? func_get_arg(2) : ''; $filename = 2 < \func_num_args() ? func_get_arg(2) : '';
$tokenIterator = new \ArrayIterator($tokens); $tokenIterator = new \ArrayIterator($tokens);
for ($key = 0; $key < $tokenIterator->count(); ++$key) { for ($key = 0; $key < $tokenIterator->count(); ++$key) {
foreach ($this->sequences as $sequence) { foreach ($this->sequences as $sequence) {
$message = ''; $message = '';
$domain = 'messages'; $domain = 'messages';
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)