Skip to content

Use SplObjectStorage::offsetSet() instead of deprecated attach() - #30

Merged
slashrsm merged 1 commit into
portphp:masterfrom
jansentjeu:fix/php85-splobjectstorage-attach-deprecation
Nov 24, 2026
Merged

slashrsm merged 1 commit into
portphp:masterfrom
jansentjeu:fix/php85-splobjectstorage-attach-deprecation

Conversation

@jansentjeu

Copy link
Copy Markdown
Contributor

SplObjectStorage::attach() is deprecated as of PHP 8.5 in favour of offsetSet(), which behaves identically and is available since PHP 5.3. StepAggregator triggers the deprecation whenever an item fails with skipItemOnFailure enabled.

This replaces the call in StepAggregator::process().

@slashrsm
slashrsm merged commit 0b08938 into portphp:master Nov 24, 2026
4 checks passed
@slashrsm

Copy link
Copy Markdown
Contributor

Thank you! I also tagged a new release.

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