Skip to content

Commit

Permalink
fix isSupported helper
Browse files Browse the repository at this point in the history
  • Loading branch information
pelmered committed Sep 26, 2024
1 parent fbc798a commit 479a845
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/FakeCar.php
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,8 @@ public function vehicleEnginePowerValue(): string

public function isSupported(string $method): bool
{
$method = 'get'.ucfirst($method);

if (method_exists($this->dataProvider, $method)) {
return true;
}
Expand Down

0 comments on commit 479a845

Please sign in to comment.