We are transitioning over to a new forum platform. Please post new issues there. Existing threads will be dealt with here unless you choose to move them over. Visit the new forum

Forum

Thread tagged as: Problem

Class defined twice

Hi

In Perch v3.1.3, the files perch/core/lib/api/PerchAPI_ContentCollection.class.php and perch/core/lib/api/PerchAPI_ContentRegion.class.php both define the class PerchAPI_ContentCollection. I assume only the first file should define this class, and the 2nd file should define the class PerchAPI_ContentRegion?

Just asking because it's causing a Fatal error in my static analyser.

Thanks, Mark

Mark Fisher

Mark Fisher 0 points

  • 2 months ago
Drew McLellan

Drew McLellan 2637 points
Perch Support

Yes, probably. I don't think it's actually used.

That was my suspicion, but I didn't want to just delete it. I can excluded the file from analyse, so able to work around. Thanks for your help.