Make declaration compatible

Fixes #12236
Merge pull request #12237 from owncloud/fix-12236

Make declaration compatible