Skip to content

Commit c33628d

Browse files
Pullrequests/keenminded/forked (#62)
* Update composer.json Upgraded torann/geoip to v3. * Update Timezone.php Preventing ide-helper from wrongly qualifying the \Carbon\Carbon as \JamesMills\LaravelTimezone\Carbon. * Update Timezone.php Preventing ide-helper issues with wrongly qualified Carbon class. * Updating the required version of PHP to 7.2 * Using psr2 for styleci preset to match php_codesniffer config * Upping requirement to php 7.4 Co-authored-by: Ty N <keenminded@users.noreply.github.com>
1 parent 23ca338 commit c33628d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
}
1414
],
1515
"require": {
16-
"php": ">=7.1",
16+
"php": ">=7.4",
1717
"laravel/framework": "5.6.* || 5.7.* || 5.8.* || ^6 || ^7 || ^8",
18-
"torann/geoip": "^1.0",
18+
"torann/geoip": "^3.0",
1919
"nesbot/carbon": "^1.0 || ^2.0"
2020
},
2121
"autoload": {

src/Timezone.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
class Timezone
88
{
99
/**
10-
* @param Carbon|null $date
10+
* @param Carbon\Carbon|null $date
1111
* @param null $format
1212
* @param bool $format_timezone
1313
* @return string
@@ -37,15 +37,15 @@ public function convertToLocal(?Carbon $date, $format = null, $format_timezone =
3737

3838
/**
3939
* @param $date
40-
* @return Carbon
40+
* @return Carbon\Carbon
4141
*/
4242
public function convertFromLocal($date) : Carbon
4343
{
4444
return Carbon::parse($date, auth()->user()->timezone)->setTimezone('UTC');
4545
}
4646

4747
/**
48-
* @param Carbon $date
48+
* @param Carbon\Carbon $date
4949
* @return string
5050
*/
5151
private function formatTimezone(Carbon $date) : string

0 commit comments

Comments
 (0)