Commit 6ec2223
committed
bug #866 Fixed the has_role() deprecation (javiereguiluz)
This PR was merged into the master branch.
Discussion
----------
Fixed the has_role() deprecation
This is a deprecation introduced by the upgrade to Symfony 4.2 in #865.
```
14x: Using the "has_role()" function in security expressions is deprecated since Symfony 4.2, use "is_granted()" instead.
2x in BlogControllerTest::testAdminNewPost from App\Tests\Controller\Admin
2x in BlogControllerTest::testAdminEditPost from App\Tests\Controller\Admin
2x in BlogControllerTest::testAdminDeletePost from App\Tests\Controller\Admin
2x in UserControllerTest::testAccessDeniedForAnonymousUsers from App\Tests\Controller
2x in UserControllerTest::testEditUser from App\Tests\Controller
2x in UserControllerTest::testChangePassword from App\Tests\Controller
1x in BlogControllerTest::testAdminBackendHomePage from App\Tests\Controller\Admin
1x in BlogControllerTest::testAdminShowPost from App\Tests\Controller\Admin
```
Commits
-------
51b5135 Fixed the has_role() deprecation2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
0 commit comments