Skip to content

Commit 88d625b

Browse files
committed
fix php error
"Typed property Binafy\LaravelStub\LaravelStub::$replaces must not be accessed before initialization" when not using function "replace" and "replaces"
1 parent 63974f4 commit 88d625b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LaravelStub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class LaravelStub
4141
*
4242
* @var array
4343
*/
44-
protected array $replaces;
44+
protected array $replaces = [];
4545

4646
/**
4747
* The stub file move or not.

0 commit comments

Comments
 (0)