Skip to content
This repository was archived by the owner on Jun 10, 2022. It is now read-only.

Commit 6db1830

Browse files
committed
fixed 7.1 return type compatible
1 parent c593d87 commit 6db1830

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/SingletonTrait.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ trait SingletonTrait
1515
*/
1616
protected static $instance;
1717

18-
public static function getInstance(): object
18+
// Need to be compatible php 7.1.x, so this scene cannot be specified return type `object`
19+
public static function getInstance()
1920
{
2021
if (self::$instance === null) {
2122
static::$instance = new static();

0 commit comments

Comments
 (0)