Skip to content

Commit e384afe

Browse files
committed
enum - use fully qualified function names
1 parent 3e9bf24 commit e384afe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Enum.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ private function __construct()
5757
*/
5858
public static function keys(): array
5959
{
60-
return array_keys(static::all());
60+
return \array_keys(static::all());
6161
}
6262

6363
/**
@@ -96,7 +96,7 @@ public static function getDefault(): string
9696
*/
9797
public static function has($model, $key): bool
9898
{
99-
if (is_object($model)) {
99+
if (\is_object($model)) {
100100
if ($attribute = static::$attribute) {
101101
return $model->$attribute == $key;
102102
}
@@ -117,7 +117,7 @@ public static function has($model, $key): bool
117117
*/
118118
public static function hasIn($model, array $keys): bool
119119
{
120-
if (is_object($model)) {
120+
if (\is_object($model)) {
121121
if ($attribute = static::$attribute) {
122122
return \in_array($model->$attribute, $keys);
123123
}

0 commit comments

Comments
 (0)