Skip to content

Commit a0d3db4

Browse files
authored
Merge pull request #8 from swisnl/feature/larastan-3-pest-3
Larastan 3 and Pest 3
2 parents dc166a8 + 522cc58 commit a0d3db4

File tree

4 files changed

+22
-9
lines changed

4 files changed

+22
-9
lines changed

.github/workflows/phpstan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Setup PHP
1919
uses: shivammathur/setup-php@v2
2020
with:
21-
php-version: '8.1'
21+
php-version: '8.3'
2222
coverage: none
2323

2424
- name: Install composer dependencies

composer.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@
3131
"require-dev": {
3232
"laravel/pint": "^1.0",
3333
"nunomaduro/collision": "^7.8|^8.1",
34-
"larastan/larastan": "^2.0.1",
34+
"larastan/larastan": "^2.9|^3.1",
3535
"orchestra/testbench": "^8.8|^9.0",
36-
"pestphp/pest": "^2.20",
37-
"pestphp/pest-plugin-arch": "^2.5",
38-
"pestphp/pest-plugin-laravel": "^2.0",
39-
"phpstan/extension-installer": "^1.1",
40-
"phpstan/phpstan-deprecation-rules": "^1.0",
41-
"phpstan/phpstan-phpunit": "^1.0"
36+
"pestphp/pest": "^2.36|^3.7",
37+
"pestphp/pest-plugin-arch": "^2.7|^3.0",
38+
"pestphp/pest-plugin-laravel": "^2.4|^3.1",
39+
"phpstan/extension-installer": "^1.4",
40+
"phpstan/phpstan-deprecation-rules": "^1.2|^2.0",
41+
"phpstan/phpstan-phpunit": "^1.4|^2.0"
4242
},
4343
"provide": {
4444
"psr/http-client-implementation": "1.0"

phpstan.neon.dist

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ parameters:
66
paths:
77
- src
88
tmpDir: build/phpstan
9-
checkMissingIterableValueType: false
9+
checkOctaneCompatibility: true
10+
checkModelProperties: true

src/Client.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ public function sendRequest(RequestInterface $request): ResponseInterface
3434
->toPsrResponse();
3535
}
3636

37+
/**
38+
* @param array<string, mixed> $options
39+
*/
3740
public function send(RequestInterface $request, array $options = []): ResponseInterface
3841
{
3942
return $this->newPendingRequest()
@@ -42,6 +45,9 @@ public function send(RequestInterface $request, array $options = []): ResponseIn
4245
->toPsrResponse();
4346
}
4447

48+
/**
49+
* @param array<string, mixed> $options
50+
*/
4551
public function sendAsync(RequestInterface $request, array $options = []): PromiseInterface
4652
{
4753
/** @var \GuzzleHttp\Promise\PromiseInterface */
@@ -51,13 +57,19 @@ public function sendAsync(RequestInterface $request, array $options = []): Promi
5157
->send($request->getMethod(), (string) $request->getUri(), array_merge(['body' => $request->getBody()], $options));
5258
}
5359

60+
/**
61+
* @param array<string, mixed> $options
62+
*/
5463
public function request(string $method, $uri, array $options = []): ResponseInterface
5564
{
5665
return $this->newPendingRequest()
5766
->send($method, (string) $uri, $options)
5867
->toPsrResponse();
5968
}
6069

70+
/**
71+
* @param array<string, mixed> $options
72+
*/
6173
public function requestAsync(string $method, $uri, array $options = []): PromiseInterface
6274
{
6375
/** @var \GuzzleHttp\Promise\PromiseInterface */

0 commit comments

Comments
 (0)