mirror of
https://github.com/fzaninotto/Faker.git
synced 2025-03-23 00:39:47 +01:00
Merge pull request #92 from benja-M-1/patch-2
Add the type of the parameter of the Base::__construct method
This commit is contained in:
commit
f247cbf4bb
@ -2,11 +2,19 @@
|
||||
|
||||
namespace Faker\Provider;
|
||||
|
||||
use Faker\Generator;
|
||||
|
||||
class Base
|
||||
{
|
||||
/**
|
||||
* @var \Faker\Generator
|
||||
*/
|
||||
protected $generator;
|
||||
|
||||
public function __construct($generator)
|
||||
/**
|
||||
* @param \Faker\Generator $generator
|
||||
*/
|
||||
public function __construct(Generator $generator)
|
||||
{
|
||||
$this->generator = $generator;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user