Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove direct deprecations reported on Symfony 6 #1946

Merged
merged 1 commit into from
Aug 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading