+
Skip to content

Conversation

pavog
Copy link
Member

@pavog pavog commented Mar 21, 2022

public function setMatches(array $matches, $patternKey) doesn't return anything and isn't meant to return anything. It's just a setter. So I would like to set the return type hint of it to void.
Since it's type hinted this might break compatibility.

@matthi4s matthi4s merged commit f626629 into aternosorg:master Mar 21, 2022
@matthi4s
Copy link
Member

Yes, this breaks compatibility in all Insight classes with multiple matches that overwrite the setMatches() function.

@pavog pavog changed the title Set return type of PatternInsightInterface->setMatches to void [BC] Set return type of PatternInsightInterface->setMatches to void Mar 21, 2022
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

Successfully merging this pull request may close these issues.

2 participants

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载