Skip to content

Commit

Permalink
fix: php7 syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
ph-fritsche committed May 12, 2021
1 parent 508dfc6 commit f15df92
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Configuration/ConfigurationAnnotation.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function __construct(

private function typecast(
&$value,
?ReflectionType $type,
?ReflectionType $type
) {
if ($type instanceof ReflectionNamedType
&& gettype($value) !== $type->getName()
Expand Down
4 changes: 2 additions & 2 deletions test/EventSubscriber/ControllerSubscriberTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ protected function getGracefulForArray(
}

protected function getControllerEvent(
callable $controller,
callable $controller
): ControllerEvent {
return new ControllerEvent(
$this->createMock(HttpKernelInterface::class),
Expand Down Expand Up @@ -161,7 +161,7 @@ function () {

protected function getSubscriberObject(
array $globalGraceful = [],
bool $reader = false,
bool $reader = false
): ControllerSubscriber {
return new ControllerSubscriber(
$reader ? new AnnotationReader() : null,
Expand Down

0 comments on commit f15df92

Please sign in to comment.