Skip to content

Loading…

Fix error message: Strict (2048) Declaration of PhpThumbHelper::url()... #5

Merged
merged 1 commit into from

3 participants

@vinzcelavi

I had an error message in cakePHP 2.2.2:
Strict (2048): Declaration of PhpThumbHelper::url() should be compatible with Helper::url($url = NULL, $full = false) [APP/Plugin/PhpThumb/View/Helper/PhpThumbHelper.php, line 5]

I fixed it

@msadouni msadouni merged commit 7d58341 into msadouni:master
@msadouni
Owner

Thanks :)

@vinzcelavi

Avec plaisir ;-)

@RyanChiu

thanks a lot! bravo!
it really helped me out of the mess!
thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 21, 2013
  1. @vinzcelavi
Showing with 1 addition and 1 deletion.
  1. +1 −1 View/Helper/PhpThumbHelper.php
View
2 View/Helper/PhpThumbHelper.php
@@ -162,7 +162,7 @@ function generateThumbnail($image, $options) {
return $this->generate($finalOptions);
}
- function url($image, $options) {
+ function url($image = null, $options = array()) {
$thumbnail = $this->generateThumbnail($image, $options);
if (!empty($thumbnail['error'])) {
return false;
Something went wrong with that request. Please try again.