Thanks. Can you create the patch with "git diff --find-copies-harder" or "git diff -M5%" so that we see that the new trait is just a copy with minor modifications?
+++ b/core/modules/basic_auth/src/Tests/BasicAuthTestTrait.php
@@ -4,7 +4,13 @@
+@trigger_error(__FILE__ . ' is deprecated in Drupal 8.4.0 and will be removed before Drupal 9.0.0. Use \Drupal\Tests\basic_auth\Traits\BasicAuthTestTrait instead. See https://www.drupal.org/node/2862800.', E_USER_DEPRECATED);
https://www.drupal.org/node/2856615#how-class says "Add @trigger_error('...', E_USER_DEPRECATED) under the namespace declaration". So this is in the wrong place right now, should be further up.
Committed and pushed f1bfa50 to 8.4.x and 59f0a25 to 8.3.x. Thanks!
diff --git a/core/modules/basic_auth/src/Tests/BasicAuthTestTrait.php b/core/modules/basic_auth/src/Tests/BasicAuthTestTrait.php
index 78056c9..0e0aceb 100644
--- a/core/modules/basic_auth/src/Tests/BasicAuthTestTrait.php
+++ b/core/modules/basic_auth/src/Tests/BasicAuthTestTrait.php
@@ -2,12 +2,12 @@
namespace Drupal\basic_auth\Tests;
-@trigger_error(__FILE__ . ' is deprecated in Drupal 8.4.0 and will be removed before Drupal 9.0.0. Use \Drupal\Tests\basic_auth\Traits\BasicAuthTestTrait instead. See https://www.drupal.org/node/2862800.', E_USER_DEPRECATED);
+@trigger_error(__FILE__ . ' is deprecated in Drupal 8.3.0 and will be removed before Drupal 9.0.0. Use \Drupal\Tests\basic_auth\Traits\BasicAuthTestTrait instead. See https://www.drupal.org/node/2862800.', E_USER_DEPRECATED);
/**
* Provides common functionality for Basic Authentication test classes.
*
- * @deprecated in Drupal 8.4.0 and will be removed before Drupal 9.0.0.
+ * @deprecated in Drupal 8.3.0 and will be removed before Drupal 9.0.0.
* Use \Drupal\Tests\basic_auth\Traits\BasicAuthTestTrait instead.
*
* @see https://www.drupal.org/node/2862800
Since we can commit this to 8.3.x change this on commit.
Comments
Comment #2
klausiComment #3
klausiPatch.
Comment #4
dawehnerThis is as minimal as it can be.
Comment #6
klausiRandom test failure because disk full on testbot machine.
Comment #8
goz commentedPatch apply manually and tests success in local. Relaunch tests
Comment #9
goz commentedComment #10
goz commentedwrong tag for seville
Comment #11
alexpottWe should follow the deprecation policy and add an @trigger_error and a change notice. See https://www.drupal.org/node/2856615
Comment #12
goz commentedChange record has been created https://www.drupal.org/node/2862800.
Comment #14
jofitzLatest test is now passing so setting back to Needs Review.
Comment #15
klausiThanks. Can you create the patch with "git diff --find-copies-harder" or "git diff -M5%" so that we see that the new trait is just a copy with minor modifications?
https://www.drupal.org/node/2856615#how-class says "Add @trigger_error('...', E_USER_DEPRECATED) under the namespace declaration". So this is in the wrong place right now, should be further up.
Comment #16
jofitzMoved @trigger_error().
Created patch with -M5% (although it makes no difference with this patch).
Comment #17
klausiHm, my git diff detects the copy correctly. Uploading that patch, not other changes.
Looks good!
Comment #18
dawehnerSo we still keep the
@deprecatedtag around on top of thetrigger_error()bit?Comment #19
alexpott@dawehner yep that we cover both runtime and IDE.
Committed and pushed f1bfa50 to 8.4.x and 59f0a25 to 8.3.x. Thanks!
Since we can commit this to 8.3.x change this on commit.