Skip to content

Commit a22d0e0

Browse files
committed
Code style Collection.php
1 parent d581fdc commit a22d0e0

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

src/Collection/Collection.php

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,14 @@
1515

1616
class Collection implements Countable, IteratorAggregate
1717
{
18-
/**
19-
* @var array
20-
*/
21-
protected $values = [];
18+
protected array $values = [];
2219

2320
public function all(): array
2421
{
2522
return $this->values;
2623
}
2724

28-
/**
29-
* @return mixed
30-
*/
31-
public function get(string $name)
25+
public function get(string $name): mixed
3226
{
3327
if ($this->has($name)) {
3428
return $this->values[$name];
@@ -42,10 +36,7 @@ public function has(string $name): bool
4236
return array_key_exists($name, $this->values);
4337
}
4438

45-
/**
46-
* @param mixed $object
47-
*/
48-
public function set(string $name, $object)
39+
public function set(string $name, mixed $object)
4940
{
5041
$this->values[$name] = $object;
5142
}

0 commit comments

Comments
 (0)