Skip to content

Commit ba4a598

Browse files
authored
Fix formatting issues in README.md example
1 parent 581a6e8 commit ba4a598

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,18 @@ composer require kristos80/password-generator
2929
### Basic Example
3030

3131
```php
32+
<?php
33+
declare(strict_types=1);
34+
35+
require_once __DIR__ . "/vendor/autoload.php";
36+
3237
use Kristos80\PasswordGenerator\PasswordGenerator;
3338
use Kristos80\PasswordGenerator\PasswordGeneratorConfigFactory;
3439

3540
$config = PasswordGeneratorConfigFactory::safeDefault();
3641
$password = (new PasswordGenerator())->generate($config);
3742

38-
echo $password;
43+
echo $password; //Cf<q{h8q4M%
3944
```
4045

4146
---

0 commit comments

Comments
 (0)