Skip to content

Call to undefined method Opis\\Closure\\SerializableClosure::__set_state() #40

@RyanSacks

Description

@RyanSacks

Hi,
I'm using Laravel 7 and when I run php artisan config:cache command I get the following error:

In ConfigCacheCommand.php line 71:
Your configuration files are not serializable.  

In config.php line 660:
Call to undefined method Opis\Closure\SerializableClosure::__set_state() 

I believe this is coming from your package.

After looking on the net, most answers point to this solution.
1) Delete the file bootstrap/cache/config.php
But this file doesn't exist in my project so I can't delete it.
Any idea how to fix this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions