Open siveryt opened 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?
use Thedudeguy\Rcon;
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;.
namespace Foo;
use xxx;
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?