Skip to content

Commit

Permalink
Merge pull request #3023 from stof/fix_deprecation_warnings
Browse files Browse the repository at this point in the history
Remove deprecation warnings triggered when loading some interfaces
  • Loading branch information
stof committed Sep 8, 2021
2 parents 185ca29 + 622ef82 commit dcc2ec6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 4 additions & 0 deletions Changelog.md
@@ -1,6 +1,10 @@
Changelog
=========

### 2.2.1 (2021-09-08)

* Fixed a deprecation warning about groups being triggered when loading the User class of the bundle.

### 2.2.0 (2021-08-26)

* Deprecated the Groups feature.
Expand Down
4 changes: 1 addition & 3 deletions Model/GroupInterface.php
Expand Up @@ -11,13 +11,11 @@

namespace FOS\UserBundle\Model;

@trigger_error('Using Groups is deprecated since version 2.2 and will be removed in 3.0.', E_USER_DEPRECATED);

/**
* @author Johannes M. Schmitt <schmittjoh@gmail.com>
* @author Christophe Coevoet <stof@notk.org>
*
* @deprecated
* @deprecated Using Groups is deprecated since version 2.2 and will be removed in 3.0.
*/
interface GroupInterface
{
Expand Down
4 changes: 1 addition & 3 deletions Model/GroupableInterface.php
Expand Up @@ -11,14 +11,12 @@

namespace FOS\UserBundle\Model;

@trigger_error('Using Groups is deprecated since version 2.2 and will be removed in 3.0.', E_USER_DEPRECATED);

/**
* @author Thibault Duplessis <thibault.duplessis@gmail.com>
* @author Johannes M. Schmitt <schmittjoh@gmail.com>
* @author Christophe Coevoet <stof@notk.org>
*
* @deprecated
* @deprecated Using Groups is deprecated since version 2.2 and will be removed in 3.0.
*/
interface GroupableInterface
{
Expand Down

0 comments on commit dcc2ec6

Please sign in to comment.