Redundant parentheses cause an error
Closed this issue · 4 comments
papajin commented
$ip = (app('VisitLog'))->getUserIP();
- this causes an error on PHP5.6.40 (syntax error, unexpected '->' (T_OBJECT_OPERATOR)
)
Parentheses are here redundant. Aren't they?
This is in Sarfraznawaz2005\VisitLog\Middleware\ipCheckMiddleware class.
sarfraznawaz2005 commented
Can you remove those parenthesis and see if it makes difference ? I will remove these once you confirm.
papajin commented
Without parentheses it does work (i.e. works like a charm).
You can try in tinker with and without the parentheses to see the difference.
sarfraznawaz2005 commented
okay thanks, fixed with release 1.3.2
papajin commented
Thanks Sarfaz!
And once again thanks for the great library.