Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » eclipse photon(Class cannot resolved to a type)
eclipse photon [message #1781546] Thu, 08 February 2018 11:29 Go to next message
IOANNIS KAISARIS is currently offline IOANNIS KAISARISFriend
Messages: 1
Registered: February 2018
Junior Member
<?php
class A {
public $x=0;
public function g () {
print ($this->x) ;
}
static public function f() {
print ("OK!") ;
}
}
A::f();
$k = new A;
$k->g();
?>
______________________________
Problems:
1) A cannot resolved to a type.
2) Content Assist: not working.
------------------------------------------------
Notice: I have all folders in the buildpath
Re: eclipse photon [message #1781573 is a reply to message #1781546] Thu, 08 February 2018 20:43 Go to previous message
Dawid Pakula is currently offline Dawid PakulaFriend
Messages: 217
Registered: March 2013
Senior Member
It's related to bug 496463. PDT doesn't work well if you have everything in one file.

Previous Topic:Synchronized PHP Projects: How to add new remote directories to an existing Synchronized PHP Projec
Next Topic:customize the outline view
Goto Forum:
  


Current Time: Sat Feb 24 02:52:16 GMT 2018

Powered by FUDForum. Page generated in 0.02101 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software