From b01309bdb595a5ffbac34c9f1508951a7591a058 Mon Sep 17 00:00:00 2001 From: Daniel Opitz Date: Mon, 8 Nov 2021 11:36:57 +0100 Subject: fix scope of anonymous function in XingProviderTest Signed-off-by: Daniel Opitz --- tests/unit/Service/Social/XingProviderTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') 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 ''; }, $contactWithSocial['X-SOCIALPROFILE']); - $contactWithSocialImg = array_map(function ($profile) { + $contactWithSocialImg = array_map(function ($profile) use ($contactImages) { return $contactImages[$profile['value']]; }, $contactWithSocial['X-SOCIALPROFILE']); -- cgit v1.2.3