Skip to content

Commit ff4e29a

Browse files
authored
Update 7.custom-extension.md
1 parent 598cb94 commit ff4e29a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/1.getting-started/7.custom-extension.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ You can easily create a customized Faker extension. To do so, simply define a PH
99
```php
1010
use Xefi\Faker\Extensions\Extension;
1111

12-
class CustomExtension extends Extension
12+
class CustomEmailExtension extends Extension
1313
{
1414
public function generateRandomEmail(string $domainName): mixed
1515
{
@@ -21,7 +21,7 @@ class CustomExtension extends Extension
2121

2222
You'll also need to load your extension into Faker
2323
```php
24-
faker()->resolveExtensions([ExtensionsArray])
24+
faker()->resolveExtensions([CustomEmailExtension::class])
2525
```
2626

2727

0 commit comments

Comments
 (0)