diff options
author | Daniel Opitz <danopz@users.noreply.github.com> | 2021-11-08 11:36:57 +0100 |
---|---|---|
committer | Daniel Opitz <git@copynpaste.de> | 2021-11-08 11:37:59 +0100 |
commit | b01309bdb595a5ffbac34c9f1508951a7591a058 (patch) | |
tree | 8bbe5a46a2dbb44ab03deab029d96808558aa9c2 | |
parent | e4546dba37264370535e730bc0d770c6a4804000 (diff) |
fix scope of anonymous function in XingProviderTest
Signed-off-by: Daniel Opitz <git@copynpaste.de>
-rw-r--r-- | tests/unit/Service/Social/XingProviderTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/Service/Social/XingProviderTest.php b/tests/unit/Service/Social/XingProviderTest.php index 1d401f1a..3799371a 100644 --- a/tests/unit/Service/Social/XingProviderTest.php +++ b/tests/unit/Service/Social/XingProviderTest.php @@ -104,10 +104,10 @@ class XingProviderTest extends TestCase { "https://www.xing.com/profile/username2", "https://www.xing.com/profile/username3" ]; - $contactWithSocialHtml = array_map(function ($profile) { + $contactWithSocialHtml = array_map(function ($profile) use ($contactImages) { return '<img src="'.$contactImages[$profile['value']].'" />'; }, $contactWithSocial['X-SOCIALPROFILE']); - $contactWithSocialImg = array_map(function ($profile) { + $contactWithSocialImg = array_map(function ($profile) use ($contactImages) { return $contactImages[$profile['value']]; }, $contactWithSocial['X-SOCIALPROFILE']); |