Skip to content

Commit 7c719ea

Browse files
committed
refactoring
1 parent cd768a5 commit 7c719ea

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Utils/DateTime.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public static function from($time)
6464
* Creates DateTime object.
6565
* @return static
6666
*/
67-
public static function fromParts(int $year, int $month, int $day, int $hour = 0, int $minute = 0, float $second = 0)
67+
public static function fromParts(int $year, int $month, int $day, int $hour = 0, int $minute = 0, float $second = 0.0)
6868
{
6969
$s = sprintf('%04d-%02d-%02d %02d:%02d:%02.5f', $year, $month, $day, $hour, $minute, $second);
7070
if (!checkdate($month, $day, $year) || $hour < 0 || $hour > 23 || $minute < 0 || $minute > 59 || $second < 0 || $second >= 60) {

src/Utils/SmartObject.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function __call(string $name, array $args)
4949
*/
5050
public static function __callStatic(string $name, array $args)
5151
{
52-
ObjectHelpers::strictStaticCall(get_called_class(), $name);
52+
ObjectHelpers::strictStaticCall(static::class, $name);
5353
}
5454

5555

src/Utils/StaticClass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@ final public function __construct()
3131
*/
3232
public static function __callStatic(string $name, array $args)
3333
{
34-
Utils\ObjectHelpers::strictStaticCall(get_called_class(), $name);
34+
Utils\ObjectHelpers::strictStaticCall(static::class, $name);
3535
}
3636
}

0 commit comments

Comments
 (0)