Skip to content

Commit

Permalink
fix: deprecated dynamic property on PHP 8.2 (barryvdh#1370)
Browse files Browse the repository at this point in the history
* fix: deprecated dynamic property on PHP 8.2

Fixing deprecated on PHP 8.2 :
- Creation of dynamic property Barryvdh\Debugbar\DataFormatter\QueryFormatter::$cloner is deprecated

Reference : 
https://php.watch/versions/8.2/dynamic-properties-deprecated

* fix: deprecated dynamic property on PHP 8.2

Fixing deprecated on PHP 8.2 :
- Creation of dynamic property Barryvdh\Debugbar\DataFormatter\SimpleFormatter::$cloner is deprecated

Reference :
https://php.watch/versions/8.2/dynamic-properties-deprecated

* fix: deprecated dynamic property on PHP 8.2
  • Loading branch information
aldok10 authored Jan 10, 2023
1 parent 7a7315f commit 7590abc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/DataFormatter/QueryFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use DebugBar\DataFormatter\DataFormatter;

#[\AllowDynamicProperties]
class QueryFormatter extends DataFormatter
{
/**
Expand Down
1 change: 1 addition & 0 deletions src/DataFormatter/SimpleFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
*
* @see https://github.com/symfony/symfony/blob/v3.4.4/src/Symfony/Component/HttpKernel/DataCollector/Util/ValueExporter.php
*/
#[\AllowDynamicProperties]
class SimpleFormatter extends DataFormatter
{
/**
Expand Down

0 comments on commit 7590abc

Please sign in to comment.