Brad Kent
Brad Kent
would adding a `use function Symfony\Component\DependencyInjection\Loader\Configurator\env;` statement work?
I don't believe this is a false positive! `env();` isn't fully qualified! `Symfony\Component\DependencyInjection\Loader\Configurator\env()` is fully qualified ``` php // this is is also fully qualified use function Symfony\Component\DependencyInjection\Loader\Configurator\env; env(); ```...
* [Sniffs/Namespaces/FullyQualifiedGlobalFunctionsSniff](https://github.com/slevomat/coding-standard/blob/master/SlevomatCodingStandard/Sniffs/Namespaces/FullyQualifiedGlobalFunctionsSniff.php) * [Sniffs/Namespaces/AbstractFullyQualifiedGlobalReference](https://github.com/slevomat/coding-standard/blob/master/SlevomatCodingStandard/Sniffs/Namespaces/AbstractFullyQualifiedGlobalReference.php) * [Helpers/FunctionHelper.php](https://github.com/slevomat/coding-standard/blob/master/SlevomatCodingStandard/Helpers/FunctionHelper.php) [search slevomat codebase for "env"](https://github.com/slevomat/coding-standard/search?q=env&type=code) fully qualified function name is analogous to absolute path vs relative path "index.php" isn't an absolute path just because...
> But, this function call[1](https://github.com/slevomat/coding-standard/issues/1368#user-content-fn-1-a2ebb58a91ef626941512269422bc56d) is not a call of a global function. The only way to know that would be via static analysis. which PHPCS (& by extension the...
@mabar I think the issue / confusion is with the name of the sniff and not necessarily the functionality of the sniff? Why not simply "FullyQualifiedFunctions" ?
have you tried a use statement? Sniff looks for use statement https://github.com/slevomat/coding-standard/blob/master/SlevomatCodingStandard/Sniffs/Namespaces/AbstractFullyQualifiedGlobalReference.php#L98
"Send message creates observable and does nothing, until we subscribe." I just spent a fair amount of time tracking that down... arg!!! Looks like the change happened back in july?...
I might be reading issue #41 and its comments wrong, but I think the consensus is "it's wrong"
for me: ``` npm WARN [email protected] requires a peer of @angular/common@^2.0.0 but none was installed. npm WARN [email protected] requires a peer of @angular/compiler@^2.0.0 but none was installed. npm WARN [email protected]...
could you elaborate? As someone that's currently using `"angular2-websocket": "^0.8.1",` in my project but unable to build with either the --prod or --aot flags (dreaded `No NgModule metadata found for...