Skip to content

Commit 8f3c602

Browse files
lptnbweston92
authored andcommitted
JsonSettingStore: declare properties used dynamically
To avoid PHP 8.2 deprecation notes like: DEPRECATED Creation of dynamic property anlutro\LaravelSettings\JsonSettingStore::$files is deprecated in vendor/anlutro/l4-settings/src/JsonSettingStore.php on line 22. DEPRECATED Creation of dynamic property anlutro\LaravelSettings\JsonSettingStore::$path is deprecated in vendor/anlutro/l4-settings/src/JsonSettingStore.php on line 45.
1 parent 1dcde02 commit 8f3c602

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/JsonSettingStore.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@
1313

1414
class JsonSettingStore extends SettingStore
1515
{
16+
/** \Illuminate\Filesystem\Filesystem */
17+
public $files;
18+
19+
/** string Path to settings file. */
20+
public $path;
21+
1622
/**
1723
* @param \Illuminate\Filesystem\Filesystem $files
1824
* @param string $path

0 commit comments

Comments
 (0)