Problem/Motivation

Rector reports NullToStrictStringFuncCallArgRector in src/Plugin/Linkit/Matcher/CKEditorAnchorLinkMatcher.php:22

Steps to reproduce

Run rector process web/modules/contrib/anchor_link/ --dry-run

Proposed resolution

-    $string = ltrim($string, '#');
+    $string = ltrim((string) $string, '#');
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

aludescher created an issue. See original summary.

aludescher’s picture

Issue summary: View changes

rajab natshah made their first commit to this issue’s fork.

rajab natshah’s picture

Title: PHP 8.1 compatibility issue NullToStrictStringFuncCallArgRector » Cast the search string before trimming it in the LinkIt matcher
rajab natshah’s picture

Merged into 3.0.x as 14c1a18.

Thank you, aludescher :)

rajab natshah’s picture

Status: Active » Fixed
Issue tags: +anchor_link-3.0.5

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

rajab natshah’s picture

✅ Released anchor_link-3.0.5

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.