Skip to content
Snippets Groups Projects

Resolve #3048495 "D11.x fix function trigger error standard"

Closes #3048495

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
131 131 * {@inheritdoc}
132 132 */
133 133 public function getAll() {
134 @trigger_error(__METHOD__ . ' is deprecated in drupal:10.2.0 and will be removed in drupal:11.0.0, there is no replacement. See https:// www.drupal.org/node/3301744', E_USER_DEPRECATED);
134 @trigger_error(__METHOD__ . ' is deprecated in drupal:10.2.0 and is removed in drupal:11.0.0. There is no replacement. See https://www.drupal.org/node/3301744', E_USER_DEPRECATED);
  • Dave Long
  • Dave Long
  • 290 290 */
    291 291 public function scan($text) {
    292 292 if (!is_string($text)) {
    293 @trigger_error('Calling ' . __METHOD__ . '() with a $text parameter of type other than string is deprecated in drupal:10.1.0, a typehint will be added in drupal:11.0.0. See https://www.drupal.org/node/3334317', E_USER_DEPRECATED);
    293 @trigger_error('Calling ' . __METHOD__ . '() with a $text parameter of type other than string is deprecated in drupal:10.1.0 and is removed in drupal:11.0.0. See https://www.drupal.org/node/3334317', E_USER_DEPRECATED);
    • "is removed in" is incorrect here, we are not removing anything - instead it will (presumably) throw an error?

      Suggested change
      293 @trigger_error('Calling ' . __METHOD__ . '() with a $text parameter of type other than string is deprecated in drupal:10.1.0 and is removed in drupal:11.0.0. See https://www.drupal.org/node/3334317', E_USER_DEPRECATED);
      293 @trigger_error('Calling ' . __METHOD__ . '() with a $text parameter of type other than string is deprecated in drupal:10.1.0 and will cause an error from drupal:11.0.0. See https://www.drupal.org/node/3334317', E_USER_DEPRECATED);
    • quietone changed this line in version 12 of the diff

      changed this line in version 12 of the diff

    • Please register or sign in to reply
  • Dave Long
  • 625 625 * @see https://www.drupal.org/node/3354596
    626 626 */
    627 627 protected function createCacheId(array $keys, array $contexts) {
    628 @trigger_error(__FUNCTION__ . '() is deprecated in drupal:10.2.0 and is removed from drupal:11.0.0. There is no replacement. See: https://www.drupal.org/project/drupal/issues/2551419.', E_USER_DEPRECATED);
    628 @trigger_error(__FUNCTION__ . '() is deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. There is no replacement. See https://www.drupal.org/node/3354596', E_USER_DEPRECATED);
  • 54 54 // Check for incorrect visibility of the $modules property.
    55 55 $class = new \ReflectionClass($test);
    56 56 if ($class->hasProperty('modules') && !$class->getProperty('modules')->isProtected()) {
    57 @trigger_error('The ' . get_class($test) . '::$modules property must be declared protected. See https://www.drupal.org/node/2909426', E_USER_DEPRECATED);
    57 @trigger_error('Declaring ' . get_class($test) . '::$modules with public visibility is deprecated in drupal:9.1.0 and must be declared protected in drupal:10.0.0. See https://www.drupal.org/node/2909426', E_USER_DEPRECATED);
  • quietone added 4 commits

    added 4 commits

    Compare with previous version

  • quietone added 1 commit

    added 1 commit

    Compare with previous version

  • quietone added 1 commit

    added 1 commit

    Compare with previous version

  • spokje added 81 commits

    added 81 commits

    Compare with previous version

  • quietone added 75 commits

    added 75 commits

    Compare with previous version

  • quietone added 1 commit

    added 1 commit

    Compare with previous version

  • Lauri Timmanee added 50 commits

    added 50 commits

    Compare with previous version

  • spokje added 1 commit

    added 1 commit

    • 8a971821 - Fixed new invalid deprecation messages

    Compare with previous version

  • spokje added 22 commits

    added 22 commits

    Compare with previous version

  • spokje added 22 commits

    added 22 commits

    Compare with previous version

  • quietone added 115 commits

    added 115 commits

    Compare with previous version

  • closed

  • Please register or sign in to reply
    Loading