php - PHP 组使用声明未按预期工作
问题描述
我目前使用
<?php
namespace App;
use App\ItemTypes\AbstractItem;
use App\ItemTypes\AgedBrie;
use App\ItemTypes\Backstage;
use App\ItemTypes\Conjured;
use App\ItemTypes\Normal;
use App\ItemTypes\Sulfuras;
但是我想尝试 PHP 7+ 中的功能,我可以在其中对它们进行分组,所以尝试了
use App\ItemTypes\{AbstractItem,AgedBrie,Backstage,Conjured,Normal,Sulfuras};
但是我得到
PHP Fatal error: Uncaught Error: Class 'Normal' not found
普通的
<?php
namespace App\ItemTypes;
class Normal extends AbstractItem