第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問(wèn)題,去搜搜看,總會(huì)有你想問(wèn)的

未捕獲的錯(cuò)誤:找不到類(lèi)“Symfony\CS\Config\Config”

未捕獲的錯(cuò)誤:找不到類(lèi)“Symfony\CS\Config\Config”

PHP
慕運(yùn)維8079593 2023-04-21 16:45:14
我整天都在為此苦苦掙扎。我進(jìn)入了一個(gè)新應(yīng)用程序,他們要求在所有文件上運(yùn)行 php-cs-fixer。該項(xiàng)目中有一個(gè) .php_cs 文件,但我無(wú)法讓它在 sublime text 3 中工作,也無(wú)法讓 vscode 執(zhí)行它。命令運(yùn)行但出現(xiàn)錯(cuò)誤:PHP Fatal error:  Uncaught Error: Class 'Symfony\CS\Config\Config' not found in C:\dev\code\.php_cs:63Stack trace:#0 C:\Users\Alex\AppData\Roaming\Composer\vendor\friendsofphp\php-cs-fixer\src\Console\ConfigurationResolver.php(933): include()#1 C:\Users\Alex\AppData\Roaming\Composer\vendor\friendsofphp\php-cs-fixer\src\Console\ConfigurationResolver.php(228): PhpCsFixer\Console\ConfigurationResolver::separatedContextLessInclude('c:\\dev\\code\\Tao...')#2 C:\Users\Alex\AppData\Roaming\Composer\vendor\friendsofphp\php-cs-fixer\src\Console\ConfigurationResolver.php(625): PhpCsFixer\Console\ConfigurationResolver->getConfig()#3 C:\Users\Alex\AppData\Roaming\Composer\vendor\friendsofphp\php-cs-fixer\src\Console\ConfigurationResolver.php(458): PhpCsFixer\Console\ConfigurationResolver->getFormat()#4 C:\Users\Alex\AppData\Roaming\Composer\vendor\friendsofphp\php-cs-fixer\src\Console\Command\FixCommand.php(151): PhpCsFixer\Console\ConfigurationResolver->getReporter()#5 C:\Users\Alex\AppData\Roaming\Composer\vendor\symfony in C:\dev\code\.php_cs on line 63這是 .php_cs 文件<?php$finder = Symfony\Component\Finder\Finder::create()    ->files()    ->in(__DIR__)    ->exclude('vendor')    ->exclude('resources/views')    ->exclude('storage')    ->exclude('public')    ->notName("*.txt")    ->ignoreDotFiles(true)    ->ignoreVCS(true);$fixers = [    '-psr0',    '-php_closing_tag',    'blankline_after_open_tag',    'double_arrow_multiline_whitespaces',    'duplicate_semicolon',    'empty_return',    'extra_empty_lines',    'include',    'join_function',    'list_commas',    'multiline_array_trailing_comma',    'namespace_no_leading_whitespace',    'no_blank_lines_after_class_opening',    'no_empty_lines_after_phpdocs',    'object_operator',    'operators_spaces',    'phpdoc_indent',    'phpdoc_no_access',    'phpdoc_no_package',    'phpdoc_scalar',];
查看完整描述

1 回答

?
holdtom

TA貢獻(xiàn)1805條經(jīng)驗(yàn) 獲得超10個(gè)贊

問(wèn)題是我們?cè)噲D使用舊版本的 php-cs-fixer,但它無(wú)法在我們的 php 版本中正常運(yùn)行。

修復(fù)是更新到 php-cs-fixer v2.*


查看完整回答
反對(duì) 回復(fù) 2023-04-21
  • 1 回答
  • 0 關(guān)注
  • 153 瀏覽

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢(xún)優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)