Skip to content
This repository was archived by the owner on Nov 1, 2022. It is now read-only.
This repository was archived by the owner on Nov 1, 2022. It is now read-only.

Does importing a global namespace for methods still work? #8

Open
@danon

Description

@danon

I can see why this

namespace App;

if (\is_string($s))

is supposed to work faster then this

namespace App;

if (is_string($s))

but I was wondering if, without changing your code much, one could import a function from global namespace like so

namespace App;

use function is_string;

if (is_string($s))

...and still benefit from improved performance?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions