Skip to content
This repository was archived by the owner on Sep 6, 2025. It is now read-only.

Add 7.1 compatibility - #9

Merged
nenad merged 1 commit into
masterfrom
php71-compatibility
May 24, 2017
Merged

Add 7.1 compatibility#9
nenad merged 1 commit into
masterfrom
php71-compatibility

Conversation

@nenad

@nenad nenad commented May 24, 2017

Copy link
Copy Markdown

What this PR changes:

  • Adds php 7.1 compatibility

@nenad nenad self-assigned this May 24, 2017
@nenad
nenad requested a review from boekkooi-fresh May 24, 2017 13:34
@nenad
nenad force-pushed the php71-compatibility branch from cac2265 to b4a9c8d Compare May 24, 2017 13:43
@nenad
nenad force-pushed the php71-compatibility branch from b4a9c8d to 160905f Compare May 24, 2017 13:55
@boekkooi-fresh

boekkooi-fresh commented May 24, 2017

Copy link
Copy Markdown
Contributor

👍 I still 😢 that you didn't up the required PHP version

Approved with PullApprove

@emilyclaudet

emilyclaudet commented May 24, 2017

Copy link
Copy Markdown

👍

Approved with PullApprove

public function __construct(\DateTimeInterface $dateTime = null)
{
$this->occurredOn = new \DateTime();
$this->occurredOn = $dateTime === null ? $dateTime : new \DateTime();

@sergiught sergiught May 24, 2017

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Why not use the new php 7 null coalesce operator here as well?

$dateTime ?? new \DateTime();

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

This needs to be compatible with php 5.6

@sergiught

sergiught commented May 24, 2017

Copy link
Copy Markdown

👍

Approved with PullApprove

@nenad nenad added the dev_qa label May 24, 2017
@sergiught

sergiught commented May 24, 2017

Copy link
Copy Markdown

👍

Approved with PullApprove

@boekkooi-fresh

boekkooi-fresh commented May 24, 2017

Copy link
Copy Markdown
Contributor

👍

Approved with PullApprove

@nenad
nenad merged commit 3a5fad4 into master May 24, 2017
@nenad
nenad deleted the php71-compatibility branch May 24, 2017 15:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants