Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

Satisfy PHP 8.1 Countable Interface #10

Merged

Conversation

LikeAJohny
Copy link

Q A
Documentation no
Bugfix yes
BC Break no
New Feature no
RFC no
QA no

Description

Adding the ReturnTypeWillChange attribute to the DbSelect::count() method to satisfy the PHP 8.1 Countable interface.
This caused the CS checks to fail as well as rendering "Deprecated: Return type of Test::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in [...]".

I hope I've correctly followed the contribution guide 👀

Jonas Kemmer added 2 commits January 22, 2022 00:23
… Countable interface

Signed-off-by: Jonas Kemmer <code@john-at-work.de>
Signed-off-by: Jonas Kemmer <code@john-at-work.de>
@Ocramius Ocramius self-assigned this Jan 22, 2022
@Ocramius Ocramius added this to the 1.2.0 milestone Jan 22, 2022
Copy link
Member

@Ocramius Ocramius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @LikeAJohny!

@Ocramius Ocramius merged commit aa62d56 into laminas:1.2.x Jan 22, 2022
@Ocramius Ocramius changed the title Satisfy PHP 8.1 Countable Interface Satisfy PHP 8.1 Countable Interface Jan 22, 2022
@LikeAJohny LikeAJohny deleted the bugfix/8.1-countable_implementation_hint branch January 22, 2022 08:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants