Skip to content

Commit

Permalink
Updated PHPStan version to resolve issue on PHP 8.0 and 8.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
aashishgurung committed Aug 22, 2024
1 parent eb48ade commit c3af675
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"require-dev": {
"phpunit/phpunit": "^5.7 || ^9.5",
"friendsofphp/php-cs-fixer": "^2.19.3 || ^3.9.5",
"phpstan/phpstan": "1.2",
"phpstan/phpstan": "^1.11",
"vlucas/phpdotenv": "5.5.0"
},
"autoload": {
Expand Down
2 changes: 1 addition & 1 deletion lib/omise/res/OmiseApiResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class OmiseApiResource extends OmiseObject
*/
protected static function getInstance($publickey = null, $secretkey = null)
{
$resource = new static($publickey, $secretkey); // @phpstan-ignore-line
$resource = new static($publickey, $secretkey);
$className = get_class($resource);
if (!isset(self::$instances[$className])) {
static::$instances[$className] = $resource;
Expand Down

0 comments on commit c3af675

Please sign in to comment.