Skip to content

Bug: capro serve bugs when having functions in config file #19

Description

@xy2z
λ capro serve                                                                                                                                                                                                            
PHP Fatal error:  Cannot redeclare get_cats() (previously declared in .\capro-docs\config\core.php:5) in .\capro-docs\config\core.php on line 5        
» Capro development server started at http://127.0.0.1:82                                                                                                                                                                

Temporary fix, use if (!function_exists('foo')) { before each function...

If anyone has any idea on how to fix this, it's greatly appreciated :)


🎃 For more PHP hacktoberfest issues, see:
https://github.com/search?q=owner%3Axy2z+label%3Ahacktoberfest+is%3Aopen&type=issues&s=comments&o=asc

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions