Skip to content

Commit

Permalink
JsonSettingStore: declare properties used dynamically
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
lptn authored and bweston92 committed Mar 27, 2023
1 parent 1dcde02 commit 8f3c602
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/JsonSettingStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@

class JsonSettingStore extends SettingStore
{
/** \Illuminate\Filesystem\Filesystem */
public $files;

/** string Path to settings file. */
public $path;

/**
* @param \Illuminate\Filesystem\Filesystem $files
* @param string $path
Expand Down

0 comments on commit 8f3c602

Please sign in to comment.