fzaninotto/Faker — Issue #10: [PHP 5.3.2] Not working
Author: ruudk
Created: 2011-10-18 10:42:58+00:00
State: open

When you run Faker in PHP 5.3.2 you'll get this error:

Fatal error: Call to a member function parse() on a non-object in /www/AdyenBundleExample/vendor/faker/src/Faker/Provider/Name.php on line 23

This is because of the following:

As of PHP 5.3.3, methods with the same name as the last element of a namespaced class name will no longer be treated as constructor. This change doesn't affect non-namespaced classes.
http://php.net/manual/en/language.oop5.decon.php

The Name provider has a name() method which is the same as the name of the class.