Skip to content

Commit 3a29a7a

Browse files
committed
Added missing docblocks
1 parent b7cbe7a commit 3a29a7a

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

psalm.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0"?>
22
<psalm
3-
errorLevel="2"
3+
errorLevel="1"
44
resolveFromConfigFile="true"
55
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
66
xmlns="https://getpsalm.org/schema/config"

src/Container.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ public function __construct(iterable $definitions = [], bool $autowire = true)
5454
$this->entries[self::class] = $this;
5555
$this->entries[ContainerInterface::class] = $this;
5656

57+
/** @var mixed $entry */
5758
foreach ($definitions as $id => $entry) {
5859
$this->set($id, $entry);
5960
}
@@ -125,6 +126,7 @@ protected function resolve(string $id)
125126

126127
$this->resolving[$id] = true;
127128

129+
/** @var mixed */
128130
$entry = $this->factories[$id]($this);
129131

130132
unset($this->resolving[$id]);
@@ -170,9 +172,11 @@ protected function getFunctionArgs(ReflectionFunctionAbstract $function): array
170172

171173
$className = $type->getName();
172174

175+
/** @var mixed */
173176
$args[] = $this->get($className);
174177
} else if ($param->isOptional()) {
175178

179+
/** @var mixed */
176180
$args[] = $param->getDefaultValue();
177181
} else {
178182
$paramName = $param->getName();

0 commit comments

Comments
 (0)