Skip to content
This repository has been archived by the owner on Dec 20, 2023. It is now read-only.

PHP below 5.5 #11

Closed
cristomanuel opened this issue May 5, 2016 · 0 comments
Closed

PHP below 5.5 #11

cristomanuel opened this issue May 5, 2016 · 0 comments

Comments

@cristomanuel
Copy link

Hi,

In last release there is an instruction that could be transformed to be compatible with older version of PHP:

if (empty($request->getContent())

I know the reasons, PHP 5.4 is unsupported, but with a simple change, this component would be more compatible. I think that use of

emtpy(expression)

is no more effective or efficient that

emtpy (variable)

$requestContent = $request->getContent();

if (empty($requestContent)) {
     return;
}
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant