Skip to content

Commit

Permalink
FIX remove phan error
Browse files Browse the repository at this point in the history
  • Loading branch information
hregis committed Oct 11, 2024
1 parent 12d929b commit 5613b9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/societe/contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
$contact = new Contact($db);

$result = $contact->fetch($id);
$contact->oldcopy = clone $contact;
$contact->oldcopy = clone $contact; // @phan-suppress-currentline PhanTypeMismatchProperty

Check warning on line 144 in htdocs/societe/contact.php

View workflow job for this annotation

GitHub Actions / phan / Run phan

contact.php: PhanTypeMismatchProperty: Assigning (clone($contact)) of type \Contact to property but \Contact->oldcopy is static

$result = $contact->delete($user);

Expand Down

0 comments on commit 5613b9b

Please sign in to comment.