Skip to content

Conversation

axlon
Copy link

@axlon axlon commented Aug 14, 2024

The following code is valid, but not allowed by template types currently. This PR fixes that.

$some = new Some(5);
$result = $some->foldLeft(1, function($a, $b) { return (string) ($a + $b) }); // string("6")

@ojhaujjwal
Copy link

@GrahamCampbell Can we get this merged please if all okay?

plus my PR too #78 around the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants