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

Resolve #3501116 "Declaration error firstdotlastfiltercanfilter" #516

Merged
merged 3 commits into from
Jan 21, 2025

Conversation

olivierh65
Copy link
Contributor

Overview

Close issues #3501116

after upgrade to php 8, declaration of FirstDotLastFilter::canFilter() is not compatible with Drupal\typed_data\DataFilterInterface::canFilter(Drupal\Core\TypedDataDefinitionInterface $definition) : bool

Before

public function canFilter(DataDefinitionInterface $definition) {

After

Update signatures of the methods canFilter and filtersTo
public function canFilter(DataDefinitionInterface $definition) : bool {

Technical Details

Comments

Release notes snippet

@civibot civibot bot added the 4.0.x label Jan 21, 2025
@jackrabbithanna
Copy link
Collaborator

Looks good! Confirmed return types are accurate.

@jackrabbithanna jackrabbithanna merged commit 54e1af4 into eileenmcnaughton:4.0.x Jan 21, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants