PHP-Minecraft-Rcon
PHP-Minecraft-Rcon copied to clipboard
use doesn't work
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' (T_USE)
https://i.imgur.com/v8bYmvL.png
Can someone help me?
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;
.