In updating an extension to support Joomla 3.x we've run into a few cases where the signature for a function has changed since 2.5 and results in a Strict standards
warning.
For example in the JTable class the _getAssetParentId()
had changed from
protected function _getAssetParentId($table = null, $id = null)
{
...
}
to this in Joomla 3.x:
protected function _getAssetParentId(JTable $table = null, $id = null)
{
...
}
It's a small difference but, it's enough to throw up the warning.
Looking at other extensions that support Joomla 2.5 and 3.0 using a single class file they seem to simply ignore the problem.
Obviously, if we fix the warning for 3.x then 2.5 installs with throw the warning…
"Solutions" that aren't an option for us include:
- using two separate version specific class files
- turning off the warnings
How do you resolve this conflict?