I have PHP (7.1) code below. Upon executing that code I'm getting the error below:
Parse error: syntax error, unexpected 'Interface' (T_INTERFACE), expecting identifier (T_STRING) or function (T_FUNCTION) or const (T_CONST) or \ (T_NS_SEPARATOR) in your code on line 7
<?php
declare(strict_types=1);
namespace CommandBus\Handler;
use Interface\{
Parser\ZipFilenameParserInterface,
Query\UpdateLettersQueryInterface,
};
final class ZipFileGeneratorCommandHandler
{
// the rest of the code
}
Googling didn't help much. I couldn't ChatGPT this thing 'cause I don't have access to ChatGPT :(.