Code Monkey home page Code Monkey logo

ide-helper's Introduction

ide-helper's People

Contributors

ahmard avatar deminy avatar doubaokun avatar evalor avatar kiss291323003 avatar matyhtf avatar nazmulpcc avatar nimrc avatar ocramius avatar persiliao avatar sy-records avatar takeokunn avatar twose avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

ide-helper's Issues

Wrong namespaces in PHPDoc

Actual: \Swoole\WebSocket\Frame
Expected: \OpenSwoole\WebSocket\Frame

https://github.com/openswoole/ide-helper/blob/master/src/OpenSwoole/WebSocket/Server.php#L85

git grep --line-number '\\Swoole\\'

src/OpenSwoole/Coroutine.php:126: * return \Swoole\Coroutine\Context|null
src/OpenSwoole/Coroutine.php:166: * return \Swoole\Coroutine\Iterator
src/OpenSwoole/Coroutine.php:173: * return \Swoole\Coroutine\Iterator
src/OpenSwoole/WebSocket/Frame.php:30: * param \Swoole\WebSocket\Frame|string $data
src/OpenSwoole/WebSocket/Frame.php:37: * return \Swoole\WebSocket\Frame|false
src/OpenSwoole/WebSocket/Server.php:70: * param \Swoole\WebSocket\Frame|string $data
src/OpenSwoole/WebSocket/Server.php:85: * param \Swoole\WebSocket\Frame|string $data
src/OpenSwoole/WebSocket/Server.php:92: * return \Swoole\WebSocket\Frame|false

Expected parameter types are OpenSwoole\string, OpenSwoole\int, etc.

On a bunch of things, for example the constructor of OpenSwoole\HTTP\Server I'm getting this strange warning: Expected parameter of type 'OpenSwoole\string', 'string' provided
image

I don't know what's causing these and can't seem to get rid of them, does anybody know what's going on?

Default Server Mode

Hey

The Server's constructor stub has this:

    public function __construct(string $host, int $port = 0, int $mode = \OpenSwoole\Server::SIMPLE_MODE, int $sockType = \OpenSwoole\Constant::SOCK_TCP)
    {
    }

But the docs here - https://openswoole.com/docs/modules/swoole-server-construct
say:

OpenSwoole\Server::POOL_MODE: Multi process mode, the business logic is running in the child processes, this is the default running mode of a server

Which is correct?

Btw, the description in the docs for SIMPLE_MODE has a typo: "simalar" => "similar" ๐Ÿ‘๐Ÿผ

Thank you!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.