Skip to content

Commit

Permalink
fix: dynamic property declaration cause warning in php 8.2+
Browse files Browse the repository at this point in the history
  • Loading branch information
hsldymq committed Sep 27, 2024
1 parent cc00b49 commit d6a0f67
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/Context/Cookie.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@

class Cookie extends BaseContext
{
public $salt = null;
protected $data;
protected $response;

Expand Down
4 changes: 1 addition & 3 deletions src/Http/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,14 @@
use Psr\Http\Message\ServerRequestInterface;
use Psr\Http\Message\UriInterface;

/**
* @property array $server
*/
class Request implements ServerRequestInterface
{
use MessageTrait;

/** @var callable */
private $client_ip_extractor = null;

public $server;
protected $get;
protected $post;
protected $cookies;
Expand Down

0 comments on commit d6a0f67

Please sign in to comment.