Skip to content

Commit

Permalink
Fix PHP 8.2 deprecation warning in endpoint stubs
Browse files Browse the repository at this point in the history
PHP Deprecated:  Creation of dynamic property Stubs\BulkEndpointStub::$supportsIdsAll is deprecated in /home/runner/work/gw2api/gw2api/tests/Stubs/BulkEndpointStub.php on line 13
  • Loading branch information
darthmaim committed Feb 7, 2024
1 parent 0a528d0 commit 86ca0ac
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/Stubs/BulkEndpointStub.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@

class BulkEndpointStub extends EndpointStub implements IBulkEndpoint {
use BulkEndpoint;

/** @var bool $supportsIdsAll */
protected $supportsIdsAll = false;

/** @var int $maxPageSize */
protected $maxPageSize = false;

public function __construct( GW2Api $api, $supportsIdsAll, $maxPageSize ) {
$this->supportsIdsAll = $supportsIdsAll;
Expand Down
3 changes: 3 additions & 0 deletions tests/Stubs/PaginatedEndpointStub.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
class PaginatedEndpointStub extends EndpointStub implements IPaginatedEndpoint {
use PaginatedEndpoint;

/** @var int $maxPageSize */
protected $maxPageSize = false;

public function __construct( GW2Api $api, $maxPageSize = 10 ) {
parent::__construct( $api );

Expand Down

0 comments on commit 86ca0ac

Please sign in to comment.