Skip to content

Commit dc6c7bf

Browse files
committed
Check if method exists beforehand
1 parent 5ad221d commit dc6c7bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/TestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public function setUp(): void
1515
{
1616
parent::setUp();
1717

18-
if ($this->getProvidedData()) {
18+
if ($this->getProvidedData() && method_exists(Model::class, 'preventAccessingMissingAttributes')) {
1919
[$strict] = $this->getProvidedData();
2020
Model::preventAccessingMissingAttributes($strict);
2121
}

0 commit comments

Comments
 (0)