Skip to content

Commit 68b6cde

Browse files
committed
Fix redundant type casts
1 parent b4191cd commit 68b6cde

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Definition.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public function setDecoratedService(?string $id, string $renamedId = null, int $
146146
if (null === $id) {
147147
$this->decoratedService = null;
148148
} else {
149-
$this->decoratedService = [$id, $renamedId, (int) $priority];
149+
$this->decoratedService = [$id, $renamedId, $priority];
150150

151151
if (ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE !== $invalidBehavior) {
152152
$this->decoratedService[] = $invalidBehavior;

ParameterBag/ParameterBag.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public function set(string $name, $value)
109109
*/
110110
public function has(string $name)
111111
{
112-
return \array_key_exists((string) $name, $this->parameters);
112+
return \array_key_exists($name, $this->parameters);
113113
}
114114

115115
/**

0 commit comments

Comments
 (0)