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

  • 6 days ago
Drew McLellan

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