Skip to content

Commit

Permalink
Merge pull request #1946 from stloyd/deprecations-cleanup
Browse files Browse the repository at this point in the history
Remove direct deprecations reported on Symfony 6
  • Loading branch information
stloyd committed Aug 21, 2023
2 parents 208ce9c + c0c81a1 commit dd0e7f2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/HWIOAuthBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class HWIOAuthBundle extends Bundle
/**
* {@inheritdoc}
*/
public function build(ContainerBuilder $container)
public function build(ContainerBuilder $container): void
{
parent::build($container);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function supports(Request $request): ?bool
return $this->enabled;
}

public function authenticate(RequestEvent $event)
public function authenticate(RequestEvent $event): void
{
if (null === $token = $this->tokenStorage->getToken()) {
return;
Expand Down
4 changes: 2 additions & 2 deletions tests/App/Form/RegistrationFormType.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ final class RegistrationFormType extends AbstractType
/**
* {@inheritdoc}
*/
public function buildForm(FormBuilderInterface $builder, array $options)
public function buildForm(FormBuilderInterface $builder, array $options): void
{
$builder
->add('email', EmailType::class, ['label' => 'form.email', 'translation_domain' => 'FOSUserBundle'])
Expand All @@ -49,7 +49,7 @@ public function buildForm(FormBuilderInterface $builder, array $options)
/**
* {@inheritdoc}
*/
public function configureOptions(OptionsResolver $resolver)
public function configureOptions(OptionsResolver $resolver): void
{
$resolver->setDefaults(
[
Expand Down
1 change: 0 additions & 1 deletion tests/App/config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ hwi_oauth:
oauth2:
service: 'app.oauth2_resource_owner'
oauth1:
type: oauth1
class: 'HWI\Bundle\OAuthBundle\Tests\App\ResourceOwner\OAuth1ResourceOwner'
client_id: "fake_client_id"
client_secret: "fake_client_secret"
Expand Down

0 comments on commit dd0e7f2

Please sign in to comment.