Skip to content

Commit 26a3433

Browse files
authored
Merge pull request #1833 from stloyd/bugfix/sf-54
Bugfix | Symfony 5.4 problems
2 parents 48057af + a69991d commit 26a3433

File tree

6 files changed

+17
-10
lines changed

6 files changed

+17
-10
lines changed

.github/workflows/ci.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ jobs:
7878
stability: 'stable'
7979
- php: '8.0'
8080
symfony-require: '5.4.*'
81-
stability: 'dev'
8281
dependencies: 'highest'
8382
fail-fast: false
8483
steps:

DependencyInjection/HWIOAuthExtension.php

+1-4
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,7 @@ public function createResourceOwnerService(ContainerBuilder $container, $name, a
142142
$container->setDefinition('hwi_oauth.resource_owner.'.$name, $definition);
143143
}
144144

145-
/**
146-
* @return string
147-
*/
148-
public function getAlias()
145+
public function getAlias(): string
149146
{
150147
return 'hwi_oauth';
151148
}

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Installation
1212

1313
All the installation instructions are located in the documentation, check it for a specific version:
1414

15-
* [__2.0__](https://github.com/hwi/HWIOAuthBundle/blob/master/Resources/doc/1-setting_up_the_bundle.md) (upcoming) - with support for Symfony: `^4.4` & `^5.3` (PHP: `^7.3` & `^8.0`),
15+
* [__2.0__](https://github.com/hwi/HWIOAuthBundle/blob/master/Resources/doc/1-setting_up_the_bundle.md) (upcoming) - with support for Symfony: `^4.4`, `^5.4` & `^6.0` (PHP: `^7.4`, `^8.0`),
1616

1717
* [__1.4__](https://github.com/hwi/HWIOAuthBundle/blob/1.4/Resources/doc/1-setting_up_the_bundle.md) (current) - with support for Symfony: `^4.4` & `^5.1` (PHP: `^7.3` & `^8.0`),
1818

Security/Core/Authentication/Token/AbstractOAuthToken.php

+2-3
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,9 @@ public function __construct($accessToken, array $roles = [])
7070

7171
// Workaround for: Method "AbstractToken::setAuthenticated()" is deprecated
7272
if (Kernel::VERSION_ID > 50399) {
73-
// @phpstan-ignore-next-line
74-
parent::setAuthenticated(\count($roles) > 0, false);
73+
$this->setAuthenticated(\count($roles) > 0, false);
7574
} else {
76-
parent::setAuthenticated(\count($roles) > 0);
75+
$this->setAuthenticated(\count($roles) > 0);
7776
}
7877
}
7978

Security/Core/Exception/AccountNotLinkedException.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function __unserialize(array $data): void
5050
/**
5151
* {@inheritdoc}
5252
*/
53-
public function getMessageKey()
53+
public function getMessageKey(): string
5454
{
5555
return 'Account could not be linked correctly.';
5656
}

composer.json

+12
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,18 @@
130130
},
131131

132132
"conflict": {
133+
"symfony/cache": "^6.0",
134+
"symfony/config": "^6.0",
135+
"symfony/dependency-injection": "^6.0",
136+
"symfony/doctrine-bridge": "^6.0",
137+
"symfony/error-handler": "^6.0",
138+
"symfony/http-foundation": "^6.0",
139+
"symfony/password-hasher": "^6.0",
140+
"symfony/property-info": "^6.0",
141+
"symfony/security-core": "^6.0",
142+
"symfony/security-http": "^6.0",
143+
"symfony/security-csrf": "^6.0",
144+
"symfony/twig-bridge": "^6.0",
133145
"twig/twig": "<1.34"
134146
},
135147

0 commit comments

Comments
 (0)