Skip to content

[Sync-EN] Fix the SplFixedArray non-integer key example - #1779

Merged
mmalferov merged 2 commits into
php:masterfrom
lacatoire:sync-en/1711
Sep 7, 2026
Merged

[Sync-EN] Fix the SplFixedArray non-integer key example#1779
mmalferov merged 2 commits into
php:masterfrom
lacatoire:sync-en/1711

Conversation

@lacatoire

Copy link
Copy Markdown
Member

Syncs reference/spl/splfixedarray.xml with php/doc-en#5227 and php/doc-en#5699.

php/doc-en#5227:

  • The example claimed a non-integer key throws a RuntimeException. As of PHP 8.1.0 it throws a TypeError, so that case is moved to the end of the example, caught as TypeError, with a comment about the pre-8.1.0 behaviour, and the expected output ends with TypeError: Illegal offset type.
  • Adds the matching 8.1.0 changelog row and the note about the pre-8.1.0 behaviour.

php/doc-en#5699: mirrors the removal of the two empty xi:fallback elements in the class synopsis.

EN-Revision bumped to a833060594749e44ff296fee01fd587d6395cff7, which covers both upstream commits.

Fixes: #1711

@lacatoire
lacatoire requested a review from a team as a code owner August 31, 2026 10:59
@mmalferov
mmalferov merged commit 2bbfb75 into php:master Sep 7, 2026
4 checks passed
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.

[Sync EN] Fix SplFixedArray example for non-integer key error type

2 participants