Skip to content

Commit 47efed4

Browse files
committed
Improve attributes vol 2
1 parent 345f0ed commit 47efed4

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/Lodash/Testing/Attributes.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,7 @@ public function hasAttribute(string $name): bool
4444
return array_key_exists($name, $this->attributes);
4545
}
4646

47-
/**
48-
* @return mixed
49-
*/
50-
public function getAttribute(string $name, $default = null)
47+
public function getAttribute(string $name, mixed $default = null): mixed
5148
{
5249
return $this->attributes[$name] ?? $default;
5350
}

0 commit comments

Comments
 (0)