Fix PHPStan undefined property error introduced after update to version 0.12.83
This commit fixes the following PHPStan error what started happening after the update to version 0.12.83. It seems that our model classes work with properties using both snake_case and camelCase names, so that is why the change made here doesn't affect the modified unit test. ``` ------ --------------------------------------------- Line tests/integration/Models/SubscriberTest.php ------ --------------------------------------------- 740 Access to an undefined property MailPoet\Models\Subscriber::$deleted_at. ------ --------------------------------------------- ``` [MAILPOET-3491]
This commit is contained in:
@ -737,7 +737,7 @@ class SubscriberTest extends \MailPoetTest {
|
||||
|
||||
// it should not find deleted and nonexistent subscribers
|
||||
list($subscriber, $segment,) = $prepareData();
|
||||
$subscriber[1]->deleted_at = date("Y-m-d H:i:s");
|
||||
$subscriber[1]->deletedAt = date("Y-m-d H:i:s");
|
||||
$subscriber[1]->save();
|
||||
$subscriber[2]->delete();
|
||||
$subscribers = Subscriber::findSubscribersInSegments(
|
||||
|
Reference in New Issue
Block a user