You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The error occurs because when Laravel cache the config that directly instantiates an object it is transformed to call the static magic method "__set_state" of the class used. But an error is thrown because the Handler classes doesn't have this magic method.
I'm able to create a pull request to resolve that and if more information is needed I can provide it, thanks for the attention.
The text was updated successfully, but these errors were encountered:
I have a project that uses the Laravel framework. I'm using the TelegramBotHandler to handle logs.
While it works perfect in the local environment, when I try to cache the Laravel config an error is thrown:
Inspecting the generated file before the "LogicException" has been thrown resulted in this cache:
The error occurs because when Laravel cache the config that directly instantiates an object it is transformed to call the static magic method "__set_state" of the class used. But an error is thrown because the Handler classes doesn't have this magic method.
I'm able to create a pull request to resolve that and if more information is needed I can provide it, thanks for the attention.
The text was updated successfully, but these errors were encountered: