Skip to content

Commit

Permalink
Merge pull request #75 from adambalint-srg/fix-dynamic-properties
Browse files Browse the repository at this point in the history
Remove dynamic properties to remove PHP 8.2 deprecation warnings
  • Loading branch information
Ocramius authored Nov 23, 2022
2 parents f7e914f + 3047f7e commit 76de900
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Header/SetCookie.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,13 @@ class SetCookie implements MultipleHeaderInterface
'none' => self::SAME_SITE_NONE,
];

/**
* @deprecated This property is deprecated, and will be removed
*
* @var string
*/
public $type;

/**
* Cookie name
*
Expand Down
7 changes: 7 additions & 0 deletions src/PhpEnvironment/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@
*/
class Response extends HttpResponse
{
/**
* @deprecated This property is deprecated, and will be removed
*
* @var bool
*/
public $headersSent;

/**
* The current used version
* (The value will be detected on getVersion)
Expand Down

0 comments on commit 76de900

Please sign in to comment.