فهرست منبع

Fix unrelated StyleCI problems

Grégoire Paris 8 سال پیش
والد
کامیت
0b14ca99cd
2فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 1 1
      Admin/AbstractAdmin.php
  2. 1 1
      Tests/Controller/CRUDControllerTest.php

+ 1 - 1
Admin/AbstractAdmin.php

@@ -1648,7 +1648,7 @@ which is not the one registered with this admin class ("%s").
 This is deprecated since 3.x and will no longer be supported in 4.0.
 EOT;
 
-            trigger_error(
+            @trigger_error(
                 sprintf($message, get_class($subject), $this->class),
                 E_USER_DEPRECATED
             ); // NEXT_MAJOR : throw an exception instead

+ 1 - 1
Tests/Controller/CRUDControllerTest.php

@@ -315,7 +315,7 @@ class CRUDControllerTest extends \PHPUnit_Framework_TestCase
                     return true;
                 }
 
-                if ($id == 'security.csrf.token_manager' && Kernel::MAJOR_VERSION >= 3  && $tthis->getCsrfProvider() !== null) {
+                if ($id == 'security.csrf.token_manager' && Kernel::MAJOR_VERSION >= 3 && $tthis->getCsrfProvider() !== null) {
                     return true;
                 }