Skip to content

Commit dcc2ec6

Browse files
authored
Merge pull request #3023 from stof/fix_deprecation_warnings
Remove deprecation warnings triggered when loading some interfaces
2 parents 185ca29 + 622ef82 commit dcc2ec6

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Changelog.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
Changelog
22
=========
33

4+
### 2.2.1 (2021-09-08)
5+
6+
* Fixed a deprecation warning about groups being triggered when loading the User class of the bundle.
7+
48
### 2.2.0 (2021-08-26)
59

610
* Deprecated the Groups feature.

Model/GroupInterface.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,11 @@
1111

1212
namespace FOS\UserBundle\Model;
1313

14-
@trigger_error('Using Groups is deprecated since version 2.2 and will be removed in 3.0.', E_USER_DEPRECATED);
15-
1614
/**
1715
* @author Johannes M. Schmitt <[email protected]>
1816
* @author Christophe Coevoet <[email protected]>
1917
*
20-
* @deprecated
18+
* @deprecated Using Groups is deprecated since version 2.2 and will be removed in 3.0.
2119
*/
2220
interface GroupInterface
2321
{

Model/GroupableInterface.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,12 @@
1111

1212
namespace FOS\UserBundle\Model;
1313

14-
@trigger_error('Using Groups is deprecated since version 2.2 and will be removed in 3.0.', E_USER_DEPRECATED);
15-
1614
/**
1715
* @author Thibault Duplessis <[email protected]>
1816
* @author Johannes M. Schmitt <[email protected]>
1917
* @author Christophe Coevoet <[email protected]>
2018
*
21-
* @deprecated
19+
* @deprecated Using Groups is deprecated since version 2.2 and will be removed in 3.0.
2220
*/
2321
interface GroupableInterface
2422
{

0 commit comments

Comments
 (0)