Skip to content

Commit e11e4be

Browse files
committed
MAGETWO-47301: PHP7 Integration test failed - syntax error, unexpected 'Gateway' (T_STRING)
- Adding comment as per CR.
1 parent 2191a83 commit e11e4be

File tree

1 file changed

+1
-0
lines changed
  • setup/src/Magento/Setup/Module/I18n/Dictionary

1 file changed

+1
-0
lines changed

setup/src/Magento/Setup/Module/I18n/Dictionary/Phrase.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,7 @@ public function getCompiledTranslation()
269269
private function getCompiledString($string)
270270
{
271271
$encloseQuote = $this->getQuote() == Phrase::QUOTE_DOUBLE ? Phrase::QUOTE_DOUBLE : Phrase::QUOTE_SINGLE;
272+
//find all occurrences of ' and ", with no \ before it.
272273
preg_match_all('/(?<!\\\\)[\'"]/', $string, $matches);
273274
if (count($matches[0]) % 2 !== 0) {
274275
$string = addslashes($string);

0 commit comments

Comments
 (0)