Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function Loose(?array $foo) : ?array
- {
- $localScoped = null;
- if ($foo !== null) {
- foreach ($foo as $bar) {
- $localScoped[] = $bar->stuff();
- }
- }
- return $localScoped;
- }
- function LooseCallee(?array $other) : ?array
- {
- $localScoped = null;
- if ($other !== null) {
- foreach ($other as $bar) {
- $localScoped[] = $bar->stuff();
- }
- }
- return $localScoped;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement