Cannot redeclare class in src directory (some case-insensitivity I guess) - Macs only?
Everything after src needs to be as you wrote it, no underscore or anything.
Are you sure you don't have a call to auto-load it in your controller?
Another possibility (silly I know) is that another class somewhere is also FieldType
The use statement:
This error message of "Cannot redeclare" happens upon install. So it seems to be an issue with the installer of C5. But as the install does not succeed, it can not be tried out in the package itself.
Also instead of
You might want to try
My class is inside src\FieldType\FieldType, so I need to have the double naming here. Otherwise I have to relocate this file and it's namespace of course.
I didn't keep a copy of your package from the PRB. Would you mind PMing me a copy to have a look, maybe I'll notice something?
Installs on 5.7.5RC1, not fully played with it yet though.