milesj / uploader

[Deprecated] A CakePHP plugin for file uploading and validating.
MIT License
193 stars 73 forks source link

Unsupported operand types #162

Closed BenjMichel closed 10 years ago

BenjMichel commented 10 years ago

Hello, with php 5.4.17 and Uploader 4.4.0 or 4.5.0, I have got an error: Fatal error: Unsupported operand types in /app/Plugin/Uploader/Model/Behavior/FileValidationBehavior.php on line 93

But it works fine with php 5.5.3 Thanks.

milesj commented 10 years ago

What's your line 93? In the source its a method declaration so it doesn't make sense.

https://github.com/milesj/uploader/blob/master/Model/Behavior/FileValidationBehavior.php#L93

BenjMichel commented 10 years ago

It's the line: $this->settings[$model->alias][$field] = $options + array('required' => true);

milesj commented 10 years ago

Debug the $settings variable, what is it? This error should never occur.