SHARE
TWEET

Untitled

a guest May 24th, 2019 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. function Loose(?array $foo) : ?array
  3. {
  4.     $localScoped = null;
  5.     if ($foo !== null) {
  6.         foreach ($foo as $bar) {
  7.             $localScoped[] = $bar->stuff();
  8.         }
  9.     }
  10.  
  11.     return $localScoped;
  12. }
  13.  
  14. function LooseCallee(?array $other) : ?array
  15. {
  16.     $localScoped = null;
  17.     if ($other !== null) {
  18.         foreach ($other as $bar) {
  19.             $localScoped[] = $bar->stuff();
  20.         }
  21.     }
  22.  
  23.     return $localScoped;
  24. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top