Skip to content

Commit

Permalink
strpos(): Passing null to parameter #1 ($haystack) of type string is …
Browse files Browse the repository at this point in the history
…deprecated
  • Loading branch information
escopecz committed Jun 9, 2023
1 parent 284bddb commit 37691bd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ protected function matchFilterForLead(array $filter, array $lead)
$groupNum = 0;

foreach ($filter as $data) {
$isCompanyField = (0 === strpos($data['field'], 'company') && 'company' !== $data['field']);
$isCompanyField = (0 === strpos((string) $data['field'], 'company') && 'company' !== $data['field']);
$primaryCompany = ($isCompanyField && !empty($lead['companies'])) ? $lead['companies'][0] : null;

if ($isCompanyField) {
Expand Down

0 comments on commit 37691bd

Please sign in to comment.