Bug 497217 - Code Assist add backslash to global classes even if they are in 'use' list
Summary: Code Assist add backslash to global classes even if they are in 'use' list
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: PHP Core CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-04 04:05 EDT by Michele Locati CLA
Modified: 2020-05-14 10:17 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michele Locati CLA 2016-07-04 04:05:46 EDT
PDT version 4.1.0.201607032253

Create a new file with this content:


<?php
namespace Foo;
use DateTime;
new DateT


Hitting [CTRL]+[SPACE] right after "new DateT", the CA popup appears: choose the first value ("DateTime() - DateTime").

Since the DateTime is included in the "use" list, I'd expect to see this:
new DateTime(...)
But I get this:
new \DateTime(...)

It seems that this (really minor) problem only occurs for global classes (ie without namespace).