Skip to content

Commit

Permalink
phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
何平 committed Jan 3, 2024
1 parent 6f01cc9 commit 9507229
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 1 addition & 2 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@
#

parameters:
level: 6
level: 9
paths:
- ./app
- ./config
- ./cloud-admin
- ./collection
reportUnmatchedIgnoredErrors: false
ignoreErrors:
- '#Static call to instance method Hyperf\\HttpServer\\Router\\Router::[a-zA-Z0-9\\_]+\(\)#'
Expand Down
8 changes: 8 additions & 0 deletions tui.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@

require 'vendor/autoload.php';

$greeting = 'Hello';

$sayHello = serialize(static function (string $name) use ($greeting): void {
echo "{$greeting} {$name}!\n";
});
$sayHello = unserialize($sayHello);
$sayHello(Swow::class);
exit;
$socket = new \Swow\Socket(Swow\Socket::TYPE_TCP);
$server = \stream_socket_server('tls://127.0.0.1:9501', context: \stream_context_create([
'ssl' => [
Expand Down

0 comments on commit 9507229

Please sign in to comment.