Skip to content

Commit

Permalink
Merge pull request #2 from SPLCompanyOy/master
Browse files Browse the repository at this point in the history
Fix Laravel 9 compatibility
  • Loading branch information
jnbn committed Aug 4, 2022
2 parents 28139e9 + c63abc2 commit 73f7079
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -2,3 +2,4 @@
/.idea
composer.phar
composer.lock
.phpunit.result.cache
2 changes: 1 addition & 1 deletion README.md
@@ -1,6 +1,6 @@
# Laravel Intl

Easy to use internationalization functions for Laravel 7 and Lumen based on various libraries for easy retrieval of localized values and formatting of numeric values into their localized patterns.
Easy to use internationalization functions for Laravel 8 and 9 and Lumen based on various libraries for easy retrieval of localized values and formatting of numeric values into their localized patterns.

### Overview

Expand Down
6 changes: 3 additions & 3 deletions composer.json
Expand Up @@ -20,9 +20,9 @@
}
],
"require": {
"php": ">=7.1.3",
"illuminate/events": "^8.0",
"illuminate/support": "^8.0",
"php": ">=8.0",
"illuminate/events": "^8.0|^9.0",
"illuminate/support": "^8.0|^9.0",
"nesbot/carbon": "^2.0",
"commerceguys/intl": "^1.0.4",
"umpirsky/country-list": "^2.0",
Expand Down
2 changes: 1 addition & 1 deletion tests/TestCurrency.php
Expand Up @@ -54,7 +54,7 @@ public function testFallbackLocaleIsUsed()

$currency = Currency::format(1234, 'EUR');

$this->assertEquals('1 234,00 €', $currency);
$this->assertEquals('1234,00 €', $currency);
}

public function testLocaleCanBeTemporarilyChanged()
Expand Down
4 changes: 2 additions & 2 deletions tests/TestDate.php
Expand Up @@ -91,7 +91,7 @@ public function testToFullTimeString()
$this->app->setLocale('nl');
$date = Date::create(2018, 1, 1, 1, 2, 3)->toFullTimeString();

$this->assertEquals('01:02:03 Gecoördineerde wereldtijd', $date);
$this->assertEquals('01:02:03 gecoördineerde wereldtijd', $date);
}

public function testToShortDatetimeString()
Expand Down Expand Up @@ -123,6 +123,6 @@ public function testToFullDatetimeString()
$this->app->setLocale('nl');
$date = Date::create(2018, 1, 31, 1, 2, 3)->toFullDatetimeString();

$this->assertEquals('woensdag 31 januari 2018 om 01:02:03 Gecoördineerde wereldtijd', $date);
$this->assertEquals('woensdag 31 januari 2018 om 01:02:03 gecoördineerde wereldtijd', $date);
}
}
2 changes: 1 addition & 1 deletion tests/TestNumber.php
Expand Up @@ -51,7 +51,7 @@ public function testFallbackLocaleIsUsed()
Number::setFallbackLocale('fr');
$number = Number::format(1234);

$this->assertEquals('1 234', $number);
$this->assertEquals('1234', $number);
}

public function testLocaleCanBeTemporarilyChanged()
Expand Down

0 comments on commit 73f7079

Please sign in to comment.