Stop Using Pseudo-Types

(f2r.github.io)

11 points | by speckx 5 days ago ago

1 comments

  • pwdisswordfishy an hour ago

    Why? The article fails to explain.

    > The introduction of first-class callables simplifies callback handling. You no longer have an excuse to define your callbacks like this:

    > <?php

    > $data = array_map(trim(...), [' x', 'z ']);

    “First-class callables” is that exact syntax.