sentry-php icon indicating copy to clipboard operation
sentry-php copied to clipboard

the test script error

Open HakureiMarisa opened this issue 8 years ago • 3 comments

https://github.com/getsentry/sentry-php/blob/b1d1d215c732ca5732257d6fb258eca9261b9e9e/bin/sentry#L26

it was said to support php5.3. but according to the manual

Prior to PHP 5.5, empty() only supports variables; anything else will result in a parse error.

I think this should be optimized

HakureiMarisa avatar Jan 17 '18 05:01 HakureiMarisa

That piece of code is used only in tests. BTW you're welcome to open a PR to fix this, it's probably enough to replace it with a == array()!

Jean85 avatar Jan 17 '18 08:01 Jean85

@HakureiMarisa would you like to open a PR with your fix so we can get it merged and close this issue?

ste93cry avatar Mar 31 '18 22:03 ste93cry

Closing this issue because it is quite old.

@HakureiMarisa I see you made a commit to fix this but never submitted the pull request if you still want to please do.

If you need help creating the pull request please see: https://help.github.com/articles/creating-a-pull-request/

Thanks!

stayallive avatar Apr 29 '18 12:04 stayallive