Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'text_limit' => false is no longer valid, need to update ReadMe #17

Open
msEmmaMays opened this issue Oct 28, 2024 · 0 comments
Open

'text_limit' => false is no longer valid, need to update ReadMe #17

msEmmaMays opened this issue Oct 28, 2024 · 0 comments

Comments

@msEmmaMays
Copy link

msEmmaMays commented Oct 28, 2024

$options = [
    'strip_scheme' => false,
    'text_limit' => false,
    'auto_title' => false,
    'escape' => true,
    'link_no_scheme' => false
];

but 'text_limit' => false, is not a valid value and causes a type error in
https://github.com/asika32764/php-autolink/blob/master/src/Autolink.php#L264

    public function getTextLimit(): int|callable|null
    {
        return $this->getOption('text_limit');
    }

Please note that this is a breaking change in v2.0.4

a4271a0

Version 2.0.1 code (using false) works as expected, but is not compatible with the latest 2.0.4 release even though it's a minor revision.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant