cakephp2-php8/lib/Cake/Utility
Guillaume Lafarge db450a96e9 Fix Hash type casting
When using comparison with a boolean, as the filter is a string, we have to convert the data boolean to "boolean string" to avoid type-casting troubles.

## Example
```php
$users = [
    [
        'id' => 2,
        'username' => 'johndoe',
        'active' => true
    ],
    [   'id' => 5,
        'username' => 'kevin',
        'active' => true
    ],
    [
        'id' => 9,
        'username' => 'samantha',
        'active' => false
    ],
];
$unactiveUsers = Hash::extract($users, '{n}[active=false]');
print_r($unactiveUsers);
```

This example returns the two unwanted active users because `"false"` is `true` but not `false` :)

I think this pull request will fix this issue by converting true/false boolean to string (to match with our filter).
2014-04-10 20:19:32 +02:00
..
CakeNumber.php Removed "PHP 5" from file header DocBlocks 2013-11-13 22:58:39 +01:00
CakeTime.php Simple docblock updates to CakeTime 2014-01-08 21:38:45 -05:00
ClassRegistry.php Replaced all is_a() calls with instanceof operator 2013-09-24 21:08:06 -04:00
Debugger.php Remove dead and unused code. 2014-02-11 16:38:24 -05:00
File.php Remove dead and unused code. 2014-02-11 16:38:24 -05:00
Folder.php Fix ApiGen errors 2014-02-07 18:29:54 -02:00
Hash.php Fix Hash type casting 2014-04-10 20:19:32 +02:00
Inflector.php Update Inflector.php 2014-03-19 19:12:44 -04:00
ObjectCollection.php cs corrections, bool to boolean and int to integer. 2013-09-17 14:44:34 +02:00
Sanitize.php Removed "PHP 5" from file header DocBlocks 2013-11-13 22:58:39 +01:00
Security.php Updated docblock. 2014-02-13 17:54:53 +05:30
Set.php generalize sentence 2014-04-04 19:19:10 +02:00
String.php Merge pull request #2503 from dereuromark/master-string 2013-12-18 09:27:00 -08:00
Validation.php account for localized floats more robustly. 2014-02-19 15:04:25 +00:00
Xml.php Removed "PHP 5" from file header DocBlocks 2013-11-13 22:58:39 +01:00