Skip to content

Commit 510d468

Browse files
committed
fix: PHP Deprecated: Creation of dynamic property Valet\Diagnose::$progressBar error.
The creation of a dynamic property without being defined first is deprecated in PHP 8.2. See https://php.watch/versions/8.2/dynamic-properties-deprecated for more info. `progressBar` property is being dynamically created in `Diagnose::beforeRun` method. To fix the deprecation error, we just need to declare the property in the class first.
1 parent 0e1fd0a commit 510d468

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cli/Valet/Diagnose.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ class Diagnose {
1313
protected $cli;
1414
protected $files;
1515
protected $print;
16+
protected $progressBar;
17+
1618

1719
/**
1820
* Create a new Diagnose instance.

0 commit comments

Comments
 (0)