Skip to content

Conversation

@KorvinSzanto
Copy link
Contributor

This PR removes the "preceding space" requirement from the fn keyword used in short closures in order to allow using short closures as arguments without needing to include a preceeding space.

// Current spec:
foo( fn(int $x, int $y): int => $x + $y);

// After this PR:
foo(fn(int $x, int $y): int => $x + $y);
@theodorejb
Copy link
Contributor

Good catch. 👍

@KorvinSzanto KorvinSzanto merged commit 52a2d8e into php-fig:master Dec 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants