Skip to content
Snippets Groups Projects
Commit 89a3ab5e authored by Benji Fisher's avatar Benji Fisher
Browse files

Issue #3435184: Automated Drupal 11 compatibility fixes for typogrify

parent 7e45db6d
No related branches found
Tags 1.0.0-alpha17
1 merge request!11Fix deprecated callable pattern
Pipeline #381389 passed with warnings
......@@ -107,7 +107,7 @@ class Typogrify {
$result[] = $token[1];
}
else {
$result[] = preg_replace_callback($cap_finder, 'self::capWrapper', $token[1]);
$result[] = preg_replace_callback($cap_finder, [static::class, 'capWrapper'], $token[1]);
}
}
}
......@@ -165,7 +165,7 @@ class Typogrify {
/ix";
}
return preg_replace_callback($quote_finder, 'self::quoteWrapper', $text);
return preg_replace_callback($quote_finder, [static::class, 'quoteWrapper'], $text);
}
/**
......
......@@ -2,7 +2,7 @@ name: Typogrify
type: module
description: 'Adds typographic refinements.'
package: 'Input filters'
core_version_requirement: ^8 || ^9 || ^10
core_version_requirement: ^8 || ^9 || ^10 || ^11
dependencies:
- drupal:filter
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment