thedudeguy / PHP-Minecraft-Rcon

Simple Rcon class for php.
MIT License
155 stars 54 forks source link

use doesn't work #28

Open siveryt opened 4 years ago

siveryt commented 4 years ago

Hello, i'm currently writing a RCON-PHP-Client and i want to use this rocn.php. But if i'm trying to use it VSCode says at use Thedudeguy\Rcon;: _syntax error, unexpected 'use' (TUSE) https://i.imgur.com/v8bYmvL.png Can someone help me?

ricardoboss commented 4 years ago

This is not an issue with PHP-Minecraft-Rcon. RTFM: https://www.php.net/manual/en/language.namespaces.importing.php

You probably just need to set a namespace Foo; before your use xxx;.