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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use short array syntax everywhere #414

Merged
merged 1 commit into from
Jan 4, 2018
Merged

Conversation

ob-stripe
Copy link
Contributor

r? @brandur-stripe
cc @stripe/api-libraries @arcanedev-maroc

Now that we're dropping support for <5.4, we can start using the short array syntax.

$headers = array();
}
$params = $params ?: [];
$headers = $headers ?: [];
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I opportunistically did a few of these "fixes" which is why the PR has a negative net line count.

Copy link
Contributor

Choose a reason for hiding this comment

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

+1.

@ob-stripe ob-stripe mentioned this pull request Jan 4, 2018
9 tasks
@brandur-stripe
Copy link
Contributor

Soooooo much cleaner! LGTM. (Feel free to go for a merge when this is ready.)

I restarted a couple of failed builds in the matrix. They look like intermittent problems talking to httpbin:

(Network error [errno 7]: Failed to connect to httpbin.org port 443: Connection timed out)

@ob-stripe ob-stripe merged commit 7353f3c into integration-v6 Jan 4, 2018
@ob-stripe ob-stripe deleted the ob-short-array-syntax branch January 4, 2018 21:29
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