hugofirth / laravel-mailchimp

A composer package for the MailChimp API PHP class (as provided by MailChimp) which supports the Laravel 4 framework.
96 stars 27 forks source link

Fix for PHP 5.3.7 #4

Closed ceesvanegmond closed 10 years ago

ceesvanegmond commented 10 years ago

In PHP 5.3.7 the following errors occurs:

[2013-10-18 11:31:45] log.ERROR: exception 'Symfony\Component\Debug\Exception\FatalErrorException' with message 'Using $this when not in object context' in /home/azie01/domains/azie.justnotfinished.com/laravel/vendor/hugofirth/m ailchimp/src/Hugofirth/Mailchimp/MailchimpServiceProvider.php:34 Stack trace:

0 [internal function]: Illuminate\Exception\Handler->handleShutdown()

1 {main} [] []

hugofirth commented 10 years ago

This was how I originally had it set up. I received a Pull request https://github.com/hugofirth/laravel-mailchimp/pull/2 to conform with Laravel's official style guide. I will do some research into which is the most acceptable approach before I revert that commit.

In the meantime please use a tagged commit rather than dev-master in order to ensure 5.3.7 compatibility. Thanks

hugofirth commented 10 years ago

I have fixed this for the time being - you should now see no issues with PHP 5.3.7