Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ac9d6cf

Browse filesBrowse files
committed
fixed fixtures
1 parent 33a001e commit ac9d6cf
Copy full SHA for ac9d6cf

File tree

Expand file treeCollapse file tree

1 file changed

+4
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-2
lines changed

‎src/Symfony/Component/Intl/Data/Bundle/Writer/PhpBundleWriter.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Intl/Data/Bundle/Writer/PhpBundleWriter.php
+4-2Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,11 @@ public function write($path, $locale, $data)
4343
});
4444

4545
$data = var_export($data, true);
46-
$data = preg_replace('/array \(/', 'array(', $data);
47-
$data = preg_replace('/\n {1,10}array\(/', 'array(', $data);
46+
$data = preg_replace('/array \(/', '[', $data);
47+
$data = preg_replace('/\n {1,10}\[/', '[', $data);
4848
$data = preg_replace('/ /', ' ', $data);
49+
$data = preg_replace('/\),$/m', '],', $data);
50+
$data = preg_replace('/\)$/', ']', $data);
4951
$data = sprintf($template, $data);
5052

5153
file_put_contents($path.'/'.$locale.'.php', $data);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.