Skip to content

Commit e408847

Browse files
authored
Merge pull request #52 from ollieread/backwards-compat-fix
Backwards compatibility fix for v1.6.2
2 parents 255453b + f8cc2de commit e408847

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Classes/ExportLocalizations.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class ExportLocalizations implements \JsonSerializable
4444
* @param string $phpRegex
4545
* @param string $jsonRegex
4646
*/
47-
public function __construct($phpRegex, $jsonRegex)
47+
public function __construct($phpRegex = '/^.+\.php$/i', $jsonRegex = '/^.+\.json$/i')
4848
{
4949
$this->phpRegex = $phpRegex;
5050
$this->jsonRegex = $jsonRegex;

src/LaravelLocalizationServiceProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ class LaravelLocalizationServiceProvider extends ServiceProvider
1818
public function boot()
1919
{
2020
$this->app->bind('export-localization', function () {
21-
$phpRegex = config('laravel-localization.file_regexp.php');
22-
$jsonRegex = config('laravel-localization.file_regexp.json');
21+
$phpRegex = config('laravel-localization.file_regexp.php', '/^.+\.php$/i');
22+
$jsonRegex = config('laravel-localization.file_regexp.json', '/^.+\.json$/i');
2323

2424
return new ExportLocalizations($phpRegex, $jsonRegex);
2525
});

0 commit comments

Comments
 (0)