Skip to content

Fix to avoid "uninitialized" warnings on stdout/stderr#6

Open
hoppfrosch wants to merge 1 commit intoMediaMath:masterfrom
hoppfrosch:unitialized
Open

Fix to avoid "uninitialized" warnings on stdout/stderr#6
hoppfrosch wants to merge 1 commit intoMediaMath:masterfrom
hoppfrosch:unitialized

Conversation

@hoppfrosch
Copy link

Within catalyst debug-panel occurs the following error

Use of uninitialized value in repeat (x)
        at Catalyst::Controller::Swagger::api_docs(C:/perl/site/lib/Catalyst/Controller/Swagger.pm:48)

This bugfix avoids this warnings

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we should check ref eq 'ARRAY' here? Or if something has changed in Catalyst that would make these warnings surface.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just made it work without warning. You're right: it's not the best solution ...

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 this pull request may close these issues.

2 participants

Comments