Skip to content

Commit

Permalink
Bump rector (#2453)
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet committed Jun 19, 2024
1 parent 3711393 commit 2bfb731
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
"phpunit/phpunit": "^9.5",
"psalm/plugin-phpunit": "^0.18",
"psalm/plugin-symfony": "^5.0",
"rector/rector": "^0.19",
"rector/rector": "^1.1",
"sonata-project/admin-bundle": "^4.28",
"sonata-project/block-bundle": "^4.11 || ^5.0",
"sonata-project/classification-bundle": "^4.0",
Expand Down
2 changes: 1 addition & 1 deletion src/Provider/Metadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function getOptions(): array
return $this->options;
}

public function getOption(string $name, $default = null)
public function getOption(string $name, mixed $default = null)
{
return \array_key_exists($name, $this->options) ? $this->options[$name] : $default;
}
Expand Down
2 changes: 0 additions & 2 deletions src/Provider/MetadataInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ public function getDomain(): ?string;
public function getOptions(): array;

/**
* @param mixed $default The default value if option not found
*
* @return mixed
*/
public function getOption(string $name, mixed $default = null);
Expand Down

0 comments on commit 2bfb731

Please sign in to comment.