fuel / core

Fuel PHP Framework - The core of the Fuel v1 framework
http://fuelphp.com
813 stars 345 forks source link

Number of values in to_assoc must be even. #999

Closed thpoul closed 12 years ago

thpoul commented 12 years ago

Based on the documentation http://docs.fuelphp.com/classes/uri.html#/method_to_assoc when using \Uri::to_assoc(); and the number of values is odd it should return NULL, instead I get this error:

BadMethodCallException [ Error ]: Number of values in to_assoc must be even.
COREPATH/classes/arr.php @ line 227
WanWizard commented 12 years ago

This is correct, and mentioned in the https://github.com/fuel/core/wiki/Changelog-v1.2.

This means the docs haven't been updated to reflect this change. I'll update the docs.