Skip to content

Commit

Permalink
Issue #3138591 by ankit.singh, benjifisher, xjm, mikelutz, andypost: …
Browse files Browse the repository at this point in the history
…[D8 only] Add missing E_USER_DEPRECATED to deprecation notices
  • Loading branch information
xjm committed May 28, 2020
1 parent 1954bd8 commit 63d995c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions modules/config/src/Form/ConfigSync.php
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ public function submitForm(array &$form, FormStateInterface $form_state) {
* @see https://www.drupal.org/node/2897299
*/
public static function processBatch(ConfigImporter $config_importer, $sync_step, &$context) {
@trigger_error('\Drupal\config\Form\ConfigSync::processBatch() deprecated in Drupal 8.6.0 and will be removed before 9.0.0. Use \Drupal\Core\Config\Importer\ConfigImporterBatch::process() instead. See https://www.drupal.org/node/2897299');
@trigger_error('\Drupal\config\Form\ConfigSync::processBatch() deprecated in drupal:8.6.0 and will be removed before drupal:9.0.0. Use \Drupal\Core\Config\Importer\ConfigImporterBatch::process() instead. See https://www.drupal.org/node/2897299', E_USER_DEPRECATED);
ConfigImporterBatch::process($config_importer, $sync_step, $context);
}

Expand All @@ -422,7 +422,7 @@ public static function processBatch(ConfigImporter $config_importer, $sync_step,
* @see https://www.drupal.org/node/2897299
*/
public static function finishBatch($success, $results, $operations) {
@trigger_error('\Drupal\config\Form\ConfigSync::finishBatch() deprecated in Drupal 8.6.0 and will be removed before 9.0.0. Use \Drupal\Core\Config\Importer\ConfigImporterBatch::finish() instead. See https://www.drupal.org/node/2897299');
@trigger_error('\Drupal\config\Form\ConfigSync::finishBatch() deprecated in drupal:8.6.0 and will be removed before drupal:9.0.0. Use \Drupal\Core\Config\Importer\ConfigImporterBatch::finish() instead. See https://www.drupal.org/node/2897299', E_USER_DEPRECATED);
ConfigImporterBatch::finish($success, $results, $operations);
}

Expand Down
16 changes: 8 additions & 8 deletions tests/Drupal/FunctionalJavascriptTests/WebDriverWebAssert.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class WebDriverWebAssert extends JSWebAssert {
* The status code.
*/
public function statusCodeEquals($code) {
@trigger_error('Support for statusCodeEquals is to be dropped from Javascript tests. See https://www.drupal.org/node/2857562.');
@trigger_error('Support for statusCodeEquals is to be dropped from Javascript tests. See https://www.drupal.org/node/2857562.', E_USER_DEPRECATED);
parent::statusCodeEquals($code);
}

Expand All @@ -25,7 +25,7 @@ public function statusCodeEquals($code) {
* The status code.
*/
public function statusCodeNotEquals($code) {
@trigger_error('Support for statusCodeNotEquals is to be dropped from Javascript tests. See https://www.drupal.org/node/2857562.');
@trigger_error('Support for statusCodeNotEquals is to be dropped from Javascript tests. See https://www.drupal.org/node/2857562.', E_USER_DEPRECATED);
parent::statusCodeNotEquals($code);
}

Expand All @@ -38,7 +38,7 @@ public function statusCodeNotEquals($code) {
* The value to check the header against.
*/
public function responseHeaderEquals($name, $value) {
@trigger_error('Support for responseHeaderEquals is to be dropped from Javascript tests. See https://www.drupal.org/node/2857562.');
@trigger_error('Support for responseHeaderEquals is to be dropped from Javascript tests. See https://www.drupal.org/node/2857562.', E_USER_DEPRECATED);
parent::responseHeaderEquals($name, $value);
}

Expand All @@ -51,7 +51,7 @@ public function responseHeaderEquals($name, $value) {
* The value to check the header against.
*/
public function responseHeaderNotEquals($name, $value) {
@trigger_error('Support for responseHeaderNotEquals is to be dropped from Javascript tests. See https://www.drupal.org/node/2857562.');
@trigger_error('Support for responseHeaderNotEquals is to be dropped from Javascript tests. See https://www.drupal.org/node/2857562.', E_USER_DEPRECATED);
parent::responseHeaderNotEquals($name, $value);
}

Expand All @@ -64,7 +64,7 @@ public function responseHeaderNotEquals($name, $value) {
* The value to check the header against.
*/
public function responseHeaderContains($name, $value) {
@trigger_error('Support for responseHeaderContains is to be dropped from Javascript tests. See https://www.drupal.org/node/2857562.');
@trigger_error('Support for responseHeaderContains is to be dropped from Javascript tests. See https://www.drupal.org/node/2857562.', E_USER_DEPRECATED);
parent::responseHeaderContains($name, $value);
}

Expand All @@ -77,7 +77,7 @@ public function responseHeaderContains($name, $value) {
* The value to check the header against.
*/
public function responseHeaderNotContains($name, $value) {
@trigger_error('Support for responseHeaderNotContains is to be dropped from Javascript tests. See https://www.drupal.org/node/2857562.');
@trigger_error('Support for responseHeaderNotContains is to be dropped from Javascript tests. See https://www.drupal.org/node/2857562.', E_USER_DEPRECATED);
parent::responseHeaderNotContains($name, $value);
}

Expand All @@ -90,7 +90,7 @@ public function responseHeaderNotContains($name, $value) {
* The value to check the header against.
*/
public function responseHeaderMatches($name, $regex) {
@trigger_error('Support for responseHeaderMatches is to be dropped from Javascript tests. See https://www.drupal.org/node/2857562.');
@trigger_error('Support for responseHeaderMatches is to be dropped from Javascript tests. See https://www.drupal.org/node/2857562.', E_USER_DEPRECATED);
parent::responseHeaderMatches($name, $regex);
}

Expand All @@ -103,7 +103,7 @@ public function responseHeaderMatches($name, $regex) {
* The value to check the header against.
*/
public function responseHeaderNotMatches($name, $regex) {
@trigger_error('Support for responseHeaderNotMatches is to be dropped from Javascript tests. See https://www.drupal.org/node/2857562.');
@trigger_error('Support for responseHeaderNotMatches is to be dropped from Javascript tests. See https://www.drupal.org/node/2857562.', E_USER_DEPRECATED);
parent::responseHeaderNotMatches($name, $regex);
}

Expand Down

0 comments on commit 63d995c

Please sign in to comment.