Skip to content

Commit 2ef9326

Browse files
committed
Merge branch 'v2.0'
2 parents 704abed + ccae9f4 commit 2ef9326

File tree

5 files changed

+2
-34
lines changed

5 files changed

+2
-34
lines changed

.sensiolabs.yml

Lines changed: 0 additions & 3 deletions
This file was deleted.

.travis.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

YaLinqo/Utils.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,11 +151,9 @@ private static function createLambdaFromString(string $closure, string $closureA
151151
$code = trim($code, " \r\n\t");
152152
if (strlen($code) > 0 && $code[0] != '{')
153153
$code = "return {$code};";
154-
$fun = @create_function($args, $code);
155-
// @codeCoverageIgnoreStart
154+
$fun = eval("return function($args) { $code };");
156155
if (!$fun)
157156
throw new \InvalidArgumentException(self::ERROR_CANNOT_PARSE_LAMBDA);
158-
// @codeCoverageIgnoreEnd
159157
self::$lambdaCache[$closure][$closureArgs] = $fun;
160158
return $fun;
161159
}

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"require-dev": {
2222
"phpunit/phpunit": "^6.5",
2323
"phpdocumentor/phpdocumentor": "^2.8",
24-
"satooshi/php-coveralls": "^2.0"
24+
"php-coveralls/php-coveralls": "^2.5"
2525
},
2626
"autoload": {
2727
"psr-4": {
File renamed without changes.

0 commit comments

Comments
 (0)