Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReflectionException when ViewWatcher enabled and debugbar also running #824

Closed
willvincent opened this issue Feb 6, 2020 · 0 comments · Fixed by #825
Closed

ReflectionException when ViewWatcher enabled and debugbar also running #824

willvincent opened this issue Feb 6, 2020 · 0 comments · Fixed by #825

Comments

@willvincent
Copy link
Contributor

willvincent commented Feb 6, 2020

  • Telescope Version: 2.1.5
  • Laravel Version: 6.14.0
  • PHP Version: 7.3.7
  • Database Driver & Version: sqlite

Description:

Similar to #793

This is still occurring with the latest versions of laravel, telescope and debugbar. If debugbar is active with the events collector enabled, and the ViewWatcher is enabled for telescope not even the default welcome view will render, instead the ReflectionException is thrown

ReflectionFunction::__construct() expects parameter 1 to be string, array given

This is referencing line 124 of telescope's ViewWatcher class.

What is being passed in $variables['listener'] causing it to blow up is:

array:2 [▼
  0 => Barryvdh\Debugbar\DataCollector\EventCollector {#387 ▼
    #events: Illuminate\Events\Dispatcher {#35 ▼
      #container: Illuminate\Foundation\Application {#2 ▶}
      #listeners: array:22 [▼
        "Illuminate\Queue\Events\Looping" => array:1 [▶]
        "Illuminate\Database\Events\QueryExecuted" => array:3 [▶]
        "Illuminate\Log\Events\MessageLogged" => array:4 [▶]
        "Illuminate\Cache\Events\CacheHit" => array:1 [▶]
        "Illuminate\Cache\Events\CacheMissed" => array:1 [▶]
        "Illuminate\Cache\Events\KeyWritten" => array:1 [▶]
        "Illuminate\Cache\Events\KeyForgotten" => array:1 [▶]
        "Illuminate\Console\Events\CommandFinished" => array:1 [▶]
        "Illuminate\Queue\Events\JobProcessed" => array:2 [▶]
        "Illuminate\Queue\Events\JobFailed" => array:2 [▶]
        "Illuminate\Mail\Events\MessageSent" => array:1 [▶]
        "Illuminate\Notifications\Events\NotificationSent" => array:1 [▶]
        "Illuminate\Redis\Events\CommandExecuted" => array:1 [▶]
        "Illuminate\Foundation\Http\Events\RequestHandled" => array:1 [▶]
        "Illuminate\Console\Events\CommandStarting" => array:1 [▶]
        "Illuminate\Queue\Events\JobProcessing" => array:1 [▶]
        "Illuminate\Queue\Events\JobExceptionOccurred" => array:1 [▶]
        "Illuminate\Foundation\Events\LocaleUpdated" => array:1 [▶]
        "Illuminate\Auth\Events\Registered" => array:1 [▶]
        "Illuminate\Database\Events\TransactionBeginning" => array:1 [▶]
        "Illuminate\Database\Events\TransactionCommitted" => array:1 [▶]
        "Illuminate\Database\Events\TransactionRolledBack" => array:1 [▶]
      ]
      #wildcards: array:6 [▼
        "*" => array:2 [▶]
        "eloquent.*" => array:2 [▶]
        "composing:*" => array:2 [▶]
        "connection.*.beganTransaction" => array:1 [▶]
        "connection.*.committed" => array:1 [▶]
        "connection.*.rollingBack" => array:1 [▶]
      ]
      #wildcardsCache: array:3 [▶]
      #queueResolver: Closure() {#36 ▶}
    }
    #requestStartTime: 1581021938.9789
    #requestEndTime: null
    #startedMeasures: []
    #measures: array:3 [▶]
    #dataFormater: Barryvdh\Debugbar\DataFormatter\SimpleFormatter {#388 ▶}
    #varDumper: null
    #xdebugLinkTemplate: ""
    #xdebugShouldUseAjax: false
    #xdebugReplacements: []
  }
  1 => "onWildcardEvent"
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant