Skip to content

Add createFromInterface() for DateTime objects.#257

Closed
Crell wants to merge 1 commit intophp:masterfrom
Crell:create-from-interface
Closed

Add createFromInterface() for DateTime objects.#257
Crell wants to merge 1 commit intophp:masterfrom
Crell:create-from-interface

Conversation

@Crell
Copy link
Copy Markdown
Contributor

@Crell Crell commented Dec 2, 2020

Basically the same file for both. Hopefully I caught all the places to reverse the class names... 😃

Copy link
Copy Markdown
Member

@cmb69 cmb69 left a comment

Choose a reason for hiding this comment

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

Thank you!

I left two comments regarding changes which I did right away. :)

<function name="datetime::add" from="PHP 5 &gt;= 5.3.0, PHP 7"/>
<function name="datetime::createfromformat" from="PHP 5 &gt;= 5.3.0, PHP 7"/>
<function name="datetime::createfromimmutable" from="PHP 7 &gt;= 7.3.0"/>
<function name="datetime::createfrominterface" from="PHP 8 &gt;= 8.0.0"/>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

No need to add any x.0.0 revision:

Suggested change
<function name="datetime::createfrominterface" from="PHP 8 &gt;= 8.0.0"/>
<function name="datetime::createfrominterface" from="PHP 8"/>

</para>
</refsect1>

<refsect1 role="returnvalues">
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The returnvalues sections should be placed before the examples section (I've noticed that this is not the case for some other date related pages, what should ideally be fixed sometime).

@php-pulls php-pulls closed this in e8af4ba Dec 10, 2020
@Crell Crell deleted the create-from-interface branch December 11, 2020 15:00
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