Stronger typing, require array where param array

This commit is contained in:
Mikael Nordfeldth
2013-08-29 10:27:39 +02:00
parent fac7371179
commit b3e61ce7d0
8 changed files with 21 additions and 21 deletions

View File

@@ -113,7 +113,7 @@ class File extends Managed_DataObject
* @param string $given_url
* @return boolean success
*/
public function saveOembed($redir_data, $given_url)
public function saveOembed(array $redir_data, $given_url)
{
if (isset($redir_data['type'])
&& (('text/html' === substr($redir_data['type'], 0, 9) || 'application/xhtml+xml' === substr($redir_data['type'], 0, 21)))