Skip to content

Commit 43d61f7

Browse files
committed
Add Swoole\Http\Status stub and update PHPStan configuration
1 parent b2a700b commit 43d61f7

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

phpstan.neon

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ parameters:
44
checkMissingIterableValueType: false
55
bootstrapFiles:
66
- examples/bootstrap.php
7+
stubFiles:
8+
- tests/phpstan/stubs/swoole.stub.php
79
paths:
810
- src
911
- tests
@@ -25,7 +27,3 @@ parameters:
2527
- tests/*
2628
- src/Message/*
2729
- src/Property/PacketMap.php
28-
-
29-
message: '#Access to constant \S+ on an unknown class Swoole\Http\Status.#'
30-
paths:
31-
- src/WebSocketClient.php
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
/**
5+
* This file is part of Simps.
6+
*
7+
* @link https://github.com/simps/mqtt
8+
* @contact Lu Fei <lufei@simps.io>
9+
*
10+
* For the full copyright and license information,
11+
* please view the LICENSE file that was distributed with this source code.
12+
*/
13+
namespace Swoole\Http;
14+
15+
final class Status
16+
{
17+
public const SWITCHING_PROTOCOLS = 101;
18+
}

0 commit comments

Comments
 (0)