Completed
Push — master ( a69df1...12052c )
by Fèvre
57s
created

src/index.php (1 issue)

Labels
Severity

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
require dirname(__DIR__) . '/config/bootstrap.php';
3
4
use Skinny\Network\Server;
5
6
$server = (new Server())->startup();
0 ignored issues
show
Are you sure the assignment to $server is correct as (new \Skinny\Network\Server())->startup() (which targets Skinny\Network\Server::startup()) seems to always return null.

This check looks for function or method calls that always return null and whose return value is assigned to a variable.

class A
{
    function getObject()
    {
        return null;
    }

}

$a = new A();
$object = $a->getObject();

The method getObject() can return nothing but null, so it makes no sense to assign that value to a variable.

The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes.

Loading history...
7