【问题标题】:Argument 1 passed to Symfony\Component\VarDumper\Dumper\HtmlDumper::setDumpHeader() must be of the type string, null given [closed]传递给 Symfony\Component\VarDumper\Dumper\HtmlDumper::setDumpHeader() 的参数 1 必须是字符串类型,给定 null [关闭]
【发布时间】:2021-10-02 22:37:36
【问题描述】:

“作曲家更新”后,我收到此错误。

Argument 1 passed to Symfony\Component\VarDumper\Dumper\HtmlDumper::setDumpHeader() must be of the type string, 
null given, 
called in /home/vagrant/code/aggregation/vendor/maximebf/debugbar/src/DebugBar/DataFormatter/DebugBarVarDumper.php 
on line 288

我应该如何解决它?

【问题讨论】:

  • 请分享更多细节。你更新了什么?您尝试过什么来解决问题?你被困在哪里了?

标签: php composer-php


【解决方案1】:

这是库中的一个问题,您应该将包降级,直到得到修复。现在:添加到您的 composer.json 文件:“symfony/var-dumper”:“

https://github.com/maximebf/php-debugbar/issues/474

【讨论】:

    【解决方案2】:

    在 composer.json 中添加一个旧的 var-dumper

    "require": {
    ...
    "symfony/var-dumper": "v5.2.11",
    ...
    

    然后运行

    $ composer update
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-05-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-11-04
      • 1970-01-01
      • 2021-10-18
      • 2018-03-22
      相关资源
      最近更新 更多