Helpers::keyExists
$haystack can be passed as empty, causes in_array function to throw exception
UserRepository::isFavorite
$favorites can be empty, causes in_array function to throw exception
SyncSingleFavorite::addFavorite
$favorites[$key]['posts'][] = $this->post_id; causes the following error:
Fatal error: [] operator not supported for strings
I believe the issue here is that the $favorites[$key]['posts'] array is not initialized
Issue also occurs lower down at $favorites[$key]['groups'][$group_key]['posts']
Succinct list of issues found so far as follows:
Helpers::keyExists $haystack can be passed as empty, causes in_array function to throw exception
UserRepository::isFavorite $favorites can be empty, causes in_array function to throw exception
SyncSingleFavorite::addFavorite $favorites[$key]['posts'][] = $this->post_id; causes the following error: Fatal error: [] operator not supported for strings I believe the issue here is that the $favorites[$key]['posts'] array is not initialized
Issue also occurs lower down at $favorites[$key]['groups'][$group_key]['posts']