問題出現在 aws/aws-sdk-php/src/functions.php on line 36
/**
* Filters values that do not satisfy the predicate function $pred.
*
* @param mixed $iterable Iterable sequence of data.
* @param callable $pred Function that accepts a value and returns true/false
*
* @return \Generator
*/
function filter($iterable, callable $pred)
{
foreach ($iterable as $value) {
if ($pred($value)) {
yield $value;
}
}
}
使用的 yield 需要 PHP 5.5 後才支援。
PHP Parse error: syntax error, unexpected '$value' (T_VARIABLE) in /statamic/vendor/aws/aws-sdk-php/src/functions.php on line 36 · Issue #971 · statamic/v2-hubhttps://github.com/statamic/v2-hub/issues/971
沒有留言:
張貼留言