国产+高潮+在线,国产 av 仑乱内谢,www国产亚洲精品久久,51国产偷自视频区视频,成人午夜精品网站在线观看

think-cache插件 使用報(bào)錯(cuò)

864328615

Method ReflectionParameter::getClass() is deprecated,求大佬指示下

1695 4 0
4個(gè)回答

nitron

PHP 8棄用getClass()

  • 864328615 2022-03-07

    等于think-cache 對(duì)php要求不能大于8

  • nitron 2022-03-07

    報(bào)錯(cuò)信息做好增加上下文, 改起來好改

  • 864328615 2022-03-07

    這插件你寫的嗎 大佬

  • nitron 2022-03-07

    不是我寫的,看下workerman/webman的版本,更新到最近的再試試看,早先一點(diǎn)的版本在PHP8下會(huì)有問題

nitron

http://m.wtbis.cn/q/7863
這個(gè)你參考一下

  • 864328615 2022-03-07

    謝謝 我用的都是最新的版本 這問題暫時(shí)擱置了,只能等walkor大老做下兼容了

  • nitron 2022-03-07

    這個(gè)只能top-think那邊做修改了,這是think-cache里依賴的topthink/think-container的問題

  • nitron 2022-03-07

    我剛剛試了下think-cache的安裝,依賴的container已經(jīng)兼容PHP8了,你把依賴升級(jí)一下

  • 864328615 2022-03-07

    再次感謝您這么細(xì)心的為我解答問題

nitron

不好意思我搞錯(cuò)了,think-container的2.0 Branch是支持PHP8了,但是它的2.0.3的tag依舊是不支持的,這個(gè)只能等topthink改了

  • 暫無評(píng)論
liziyu

好像是把 ReflectionParameter::getClass() 改為: ReflectionParameter::getType() 就行了。

具體看這里:https://github.com/top-think/framework/commit/df4a07d2f51307a6fabdf75dc5b4b7f8b0ad8af8

  • aimuc 2022-03-08

    復(fù)制https://github.com/top-think/framework/blob/6.0/src/think/Container.php 替換Container.php就好了

  • yzh52521 2022-03-08

    "topthink/think-cache": "^2.0.x-dev", 這樣就好了

年代過于久遠(yuǎn),無法發(fā)表回答
??