Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Naoray committed Jan 15, 2025
1 parent 0a784a5 commit 137fd3d
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 2 deletions.
42 changes: 42 additions & 0 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,48 @@ parameters:
count: 1
path: examples/subscriptions/update-subscription.php

-
message: '#^Parameter \#1 \$handle of class Mollie\\Api\\Http\\Adapter\\CurlFactory constructor expects resource, CurlHandle given\.$#'
identifier: argument.type
count: 1
path: src/Http/Adapter/CurlFactory.php

-
message: '#^Parameter \#1 \$handle of function curl_setopt expects CurlHandle, resource given\.$#'
identifier: argument.type
count: 1
path: src/Http/Adapter/CurlFactory.php

-
message: '#^Parameter \#1 \$handle of function curl_close expects CurlHandle, resource given\.$#'
identifier: argument.type
count: 1
path: src/Http/Adapter/CurlMollieHttpAdapter.php

-
message: '#^Parameter \#1 \$handle of function curl_errno expects CurlHandle, resource given\.$#'
identifier: argument.type
count: 1
path: src/Http/Adapter/CurlMollieHttpAdapter.php

-
message: '#^Parameter \#1 \$handle of function curl_error expects CurlHandle, resource given\.$#'
identifier: argument.type
count: 1
path: src/Http/Adapter/CurlMollieHttpAdapter.php

-
message: '#^Parameter \#1 \$handle of function curl_exec expects CurlHandle, resource given\.$#'
identifier: argument.type
count: 1
path: src/Http/Adapter/CurlMollieHttpAdapter.php

-
message: '#^Parameter \#1 \$handle of function curl_getinfo expects CurlHandle, resource given\.$#'
identifier: argument.type
count: 2
path: src/Http/Adapter/CurlMollieHttpAdapter.php

-
message: '#^Unsafe usage of new static\(\)\.$#'
identifier: new.static
Expand Down
3 changes: 1 addition & 2 deletions src/Http/Adapter/CurlFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@
namespace Mollie\Api\Http\Adapter;

use Composer\CaBundle\CaBundle;
use CurlHandle;
use Mollie\Api\Http\PendingRequest;
use Mollie\Api\Types\Method;

/**
* @phpstan-type CurlType resource|CurlHandle
* @phpstan-type CurlType resource
*/
class CurlFactory
{
Expand Down

0 comments on commit 137fd3d

Please sign in to comment.