我在Errors.php中有一个名为Errors的类 class Errors private $_CODES = array(public static function getError($code) return $this->_CODES[$code];在Myclass.php中,我有
use M
实际上,我们正在将PHP项目从PHP 5.3迁移到7.2。我有一个问题,用不支持PHP5.3的PhpSpreadSheet替换PHPExcel。我暂时将PHPExcel放在一个单独的文件夹中,并且我使用PHP_VERSION_ID来使用其中一个。// early in the file to use another dependency
require_once 'vendor
/MyFirstTest.php on line 5
我以为加载全局composer自动加载器会让phpunit在全局composer目录中查找phpunit类,但似乎找不到它。有没有办法让它同时选中这两个?下面这行来自/home/vagrant/.composer/vendor/composer/autoload_classmap.php,它显示