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

Support namespace non class function #39

Closed
williamdes opened this issue Dec 11, 2021 · 4 comments
Closed

Support namespace non class function #39

williamdes opened this issue Dec 11, 2021 · 4 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@williamdes
Copy link
Member

williamdes commented Dec 11, 2021

<?php

namespace BarBaz
{

    function supportMe(string $data, int $level = 3): void {}
}
@williamdes
Copy link
Member Author

Currently is not rendered but the search box can find it..
missing rendered file

@williamdes
Copy link
Member Author

      {"type":"Function","link":"[Global_Namespace].html#function_throw_if","name":"\\throw_if","doc":"<p>Throw the given exception if the given condition is true.</p>"},
        {"type":"Function","link":"[Global_Namespace].html#function_throw_unless","name":"\\throw_unless","doc":"<p>Throw the given exception unless the given condition is true.</p>"},
        {"type":"Function","link":"[Global_Namespace].html#function_title_case","name":"\\title_case","doc":"<p>Convert a value to title case.</p>"},
        {"type":"Function","link":"[Global_Namespace].html#function_today","name":"\\today","doc":"<p>Create a new Carbon instance for the current date.</p>"},
        {"type":"Function","link":"[Global_Namespace].html#function_trait_uses_recursive","name":"\\trait_uses_recursive","doc":"<p>Returns all traits used by a trait and its traits.</p>"},
        {"type":"Function","link":"[Global_Namespace].html#function_trans","name":"\\trans","doc":"<p>Translate the given message.</p>"},
        {"type":"Function","link":"[Global_Namespace].html#function_trans_choice","name":"\\trans_choice","doc":"<p>Translates the given message based on a count.</p>"},
        {"type":"Function","link":"[Global_Namespace].html#function_transform","name":"\\transform","doc":"<p>Transform the given value if it is present.</p>"},
        {"type":"Function","link":"[Global_Namespace].html#function_url","name":"\\url","doc":"<p>Generate a url for the application.</p>"},
        {"type":"Function","link":"[Global_Namespace].html#function_validator","name":"\\validator","doc":"<p>Create a new Validator instance.</p>"},
        {"type":"Function","link":"[Global_Namespace].html#function_value","name":"\\value","doc":"<p>Return the default value of the given value.</p>"},
        {"type":"Function","link":"[Global_Namespace].html#function_view","name":"\\view","doc":"<p>Get the evaluated view contents for the given view.</p>"},
        {"type":"Function","link":"[Global_Namespace].html#function_windows_os","name":"\\windows_os","doc":"<p>Determine whether the current environment is Windows based.</p>"},
        {"type":"Function","link":"[Global_Namespace].html#function_with","name":"\\with","doc":"<p>Return the given value, optionally passed through the given callback.</p>"},
                                // Fix trailing commas in the index

Found on Laravel

@williamdes
Copy link
Member Author

@williamdes williamdes added this to the v5.5.0 milestone Jan 9, 2022
@williamdes
Copy link
Member Author

This did occur only if no classes used the global namespace

@williamdes williamdes self-assigned this Jan 9, 2022
williamdes added a commit that referenced this issue Jan 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

1 participant