diff options
author | Christian Schneider | 2017-02-07 16:14:44 +0100 |
---|---|---|
committer | Christian Schneider | 2017-02-07 16:14:44 +0100 |
commit | f82923f96c15e957f4265f21597cd2cdc994482f (patch) | |
tree | 58a134c583bb7fbc235e748acb1fd2824ece44b2 /tests | |
parent | fca09880bc39d2814492cee6197a76f12e715d91 (diff) | |
download | itools-f82923f96c15e957f4265f21597cd2cdc994482f.tar.gz itools-f82923f96c15e957f4265f21597cd2cdc994482f.tar.bz2 itools-f82923f96c15e957f4265f21597cd2cdc994482f.zip |
Replace create_function which will be deprecated in PHP 7.2
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/it.t | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -415,7 +415,6 @@ is(it::mod(0, 4), 0); is(it::mod(7, 4), 3); is(it::map('5*$k+$v', array(0 => 1, 1 => 2)), array(1, 7)); -is(it::map(create_function('$k,$v', 'return 5*$k+$v;'), array(0 => 1, 1 => 2)), array(1, 7)); is(it::map(function($k, $v) {return 5*$k+$v;}, array(0 => 1, 1 => 2)), array(1, 7)); is(it::map('strlen', array("aaa", "aa")), array(3, 2)); is(it::map('it::ucfirst', array("aaa")), array("Aaa")); |