Closed ellisv closed 4 years ago
I don't see any benefit on doing so. Using namespaces solves any sort of duplication issue naming we might have.
Anyways, thanks for bringing the discussion over the table.
In my opinion, yes, the code is clearer and avoids misunderstanding. Personally I use this convention in all my projects.
For example:
// ...
use OpenTracing\Tracer as OTTracer;
final class Tracer implements OTTracer
{
// ...
become more clearly:
// ...
use OpenTracing\TracerInterface;
final class Tracer implements TracerInterface
{
// ...
This looks like completed issue.
@jcchavezs can you close this issue?
If I have not missed anything, it seems that the code has not been changed but the issue has been closed. Can you add the label "wontfix" to this issue?
Totally @fox91. Thanks!
Doc: https://www.php-fig.org/bylaws/psr-naming-conventions/
It is common in PHP community to append
Interface
to the name when naming interfaces. Examples from various famous packages: