| 1 | <?php |
||
| 11 | final class Server |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var Headers |
||
| 15 | */ |
||
| 16 | private $headers; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var Request |
||
| 20 | */ |
||
| 21 | private $request; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var Response |
||
| 25 | */ |
||
| 26 | private $response; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Server constructor. |
||
| 30 | */ |
||
| 31 | public function __construct() |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Whitelist your UI |
||
| 40 | * |
||
| 41 | * @param $origin |
||
| 42 | * @return void |
||
| 43 | */ |
||
| 44 | public function whitelist(string $origin) |
||
| 48 | |||
| 49 | /** |
||
| 50 | * Set API KEY |
||
| 51 | * |
||
| 52 | * @param string $api_key |
||
| 53 | * @return void |
||
| 54 | */ |
||
| 55 | public function setApiKey(string $api_key) |
||
| 59 | |||
| 60 | /** |
||
| 61 | * Run the server |
||
| 62 | * |
||
| 63 | * @return void |
||
| 64 | */ |
||
| 65 | public function run() |
||
| 83 | } |
||
| 84 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..