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 years ago
Drew McLellan

Drew McLellan 2638 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.