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

Updated function to be compatible with the base one. #525

Conversation

MdNadimHossain
Copy link
Contributor

Jira

Problem/Motivation

PHP Fatal error: Declaration of Drupal\tide_site\Plugin\Linkit\Substitution\Canonical::getUrl(Drupal\Core\Entity\EntityInterface $entity) must be compatible with Drupal\linkit\Plugin\Linkit\Substitution\Canonical::getUrl(Drupal\Core\Entity\EntityInterface $entity, array $options = []) in /app/docroot/modules/contrib/tide_core/modules/tide_site/src/Plugin/Linkit/Substitution/Canonical.php on line 70

Fix

Updated the overriding function.

Related PRs

It is related to the latest linkit module release and this patch to be specific which updates the getUrl function - https://www.drupal.org/project/linkit/issues/3022261

Screenshots

TODO

@MdNadimHossain MdNadimHossain merged commit f978b99 into develop Oct 16, 2024
4 of 6 checks passed
@MdNadimHossain MdNadimHossain deleted the task/fix-php-fatal-error-for-override-function-compatibility-issue branch October 16, 2024 04:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants