Skip to content

Commit

Permalink
Fix redundant type casts
Browse files Browse the repository at this point in the history
  • Loading branch information
fancyweb committed Nov 29, 2021
1 parent b4191cd commit 68b6cde
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Definition.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public function setDecoratedService(?string $id, string $renamedId = null, int $
if (null === $id) {
$this->decoratedService = null;
} else {
$this->decoratedService = [$id, $renamedId, (int) $priority];
$this->decoratedService = [$id, $renamedId, $priority];

if (ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE !== $invalidBehavior) {
$this->decoratedService[] = $invalidBehavior;
Expand Down
2 changes: 1 addition & 1 deletion ParameterBag/ParameterBag.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public function set(string $name, $value)
*/
public function has(string $name)
{
return \array_key_exists((string) $name, $this->parameters);
return \array_key_exists($name, $this->parameters);
}

/**
Expand Down

0 comments on commit 68b6cde

Please sign in to comment.