Skip to content

Commit 7a30760

Browse files
committed
PHP 8.1 > uasort(): Returning bool from comparison function is deprecated, return an integer less than, equal to, or greater than zero
1 parent 803c2a5 commit 7a30760

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/routing/sfRoute.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ public function generate($params, $context = array(), $absolute = false)
264264

265265
static private function generateCompareVarsByStrlen($a, $b)
266266
{
267-
return strlen($a) < strlen($b);
267+
return (strlen($a) < strlen($b)) ? 1 : -1;
268268
}
269269

270270
/**

0 commit comments

Comments
 (0)