-
Notifications
You must be signed in to change notification settings - Fork 817
Document ArrayAccess in PHP-DS #161
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
Conversation
Thanks for the PR! Implementing ArrayAccess seems to be a very recent addition for 1.3.0 (php-ds/ext-ds@b297e8f), and that should be mentioned in the manual, possibly as a changelog entry. |
Indeed, this deserves an entry in the changelog! Actually there are 2 more classes that should implement In the meantime, could you please point me to where I can learn how to compile the PHP docs to HTML? I'm new to the XML format in use, and would like to be able to test my changes locally. |
See the "Build the documentation" section at http://doc.php.net/tutorial/local-setup.php. |
Thank you, @cmb69! All done now, ready for review. But please wait for @rtheunissen's feedback on php-ds/ext-ds#163 before considering merging! |
reference/ds/ds.deque.xml
Outdated
</thead> | ||
<tbody> | ||
<row> | ||
<entry>1.3.0</entry> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<entry>1.3.0</entry> | |
<entry>PECL ds 1.3.0</entry> |
Otherwise we get confusing version info on https://www.php.net/manual/en/doc.changelog.php.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, sorry about that. I did think that this might bring confusion, but saw other extensions doing the same so thought that was the norm:
doc-en/reference/mongo/mongolog.xml
Line 309 in 057d46a
<entry>1.3.0</entry> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in fcc6727.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sadly, the manual is pretty inconsistent in this regard.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can write a quick script to identify these and fix them, if you wish.
(Basically, looking for any <entry>
version < 4.x which would mean that we're not talking about a PHP version, as this manual does not have any changelog for PHP < 4.x, if I'm not mistaken. That would maybe not flag all of them, but most of them).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, that would be very nice! :)
I have merged the array access changes, which will be released soon alongside a few other fixes on 1.3.0 |
@rtheunissen Thanks for your responsiveness! 👍 @cmb69 Ready to merge then! |
Thanks! Applied as http://svn.php.net/viewvc?view=revision&revision=350981. |
Thank you! Is there still a work in progress to move the repo to Git? |
Unfortunately, that migration has stalled. |
The following classes/interfaces in PHP-DS implement
ArrayAccess
:Map
Stack
Sequence
(Deque
,Vector
)But this is not currently documented.
Script to check which classes/interfaces implement
ArrayAccess
: