Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add createFromInterface() for DateTime objects. #257

Closed
wants to merge 1 commit into from

Conversation

Crell
Copy link
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
Contributor

@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. :)

@@ -12,6 +12,7 @@
<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
Contributor

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
Contributor

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.

None yet

2 participants