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

Add parameter and return types to Queue, Stack and List types #106

Merged
merged 7 commits into from
Sep 13, 2023

Conversation

gsteel
Copy link
Member

@gsteel gsteel commented Sep 13, 2023

Q A
Documentation yes
BC Break yes
QA yes

Description

Adds return/property/parameter types to a subset of the iterable types in Stdlib.

I've focussed on queues/stacks here to keep the patch small and easier to review. The intention is to work through other areas of the codebase and add type hints where appropriate in other patches, and update the migration guide with each patch.

This also fixes a bug in SplPriorityQueue where a serialisation round trip would cause unexpected insertion order due to the state of $this->serial not being updated during un-serialize.

…ypes to match inherited types

Signed-off-by: George Steel <george@net-glue.co.uk>
Signed-off-by: George Steel <george@net-glue.co.uk>
Signed-off-by: George Steel <george@net-glue.co.uk>
Signed-off-by: George Steel <george@net-glue.co.uk>
Signed-off-by: George Steel <george@net-glue.co.uk>
docs/book/v4/migration/v3-to-v4.md Outdated Show resolved Hide resolved
docs/book/v4/migration/v3-to-v4.md Outdated Show resolved Hide resolved
docs/book/v4/migration/v3-to-v4.md Outdated Show resolved Hide resolved
docs/book/v4/migration/v3-to-v4.md Outdated Show resolved Hide resolved
docs/book/v4/migration/v3-to-v4.md Show resolved Hide resolved
gsteel and others added 2 commits September 13, 2023 13:49
Co-authored-by: Frank Brückner <info@froschdesignstudio.de>
Signed-off-by: George Steel <george@netglue.uk>
…guide

Signed-off-by: George Steel <george@net-glue.co.uk>
@gsteel gsteel changed the title Add parameter and return types Add parameter and return types to Queue, Stack and List types Sep 13, 2023
@gsteel gsteel merged commit e70f8e1 into laminas:4.0.x Sep 13, 2023
15 checks passed
@gsteel gsteel deleted the add-parameter-and-return-types branch September 13, 2023 22:21
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.

3 participants