Skip to content

Conversation

@lacatoire
Copy link
Contributor

SplObjectStorage::offsetSet() is an alias of SplObjectStorage::attach(),
which is deprecated as of PHP 8.5.

This change makes the alias relationship explicit in the documentation.
Issue: #4957

Copy link
Member

@Girgias Girgias left a comment

Choose a reason for hiding this comment

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

Normally when we mark a page as an alias we just link to the other page, but that's only for functions... I think this is the first time this happened with methods. So I guess this is fine.

@Girgias Girgias merged commit a0d6215 into php:master Jan 11, 2026
2 checks passed
@Girgias
Copy link
Member

Girgias commented Jan 11, 2026

Thank you!

@lacatoire lacatoire deleted the docs/splobjectstorage-attach-alias branch January 12, 2026 08:39
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