Skip to content

Commit

Permalink
Minor bug fix: getByCode was strictly typed to string for the $code p…
Browse files Browse the repository at this point in the history
…arameter
  • Loading branch information
coolsam726 committed Oct 19, 2023
1 parent cf6a725 commit f700adb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Helpers/Framework.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public function substitute(string $expression, array $substitutions = [], string
return Str::of($expression)->replace($keys->toArray(), $values->toArray())->toString();
}

public function getByCode(Model | string $model, string $code)
public function getByCode(Model | string $model, string|array $code)
{
if (! Schema::hasColumn($model::query()->getModel()->getTable(), 'code')) {
return null;
Expand Down

0 comments on commit f700adb

Please sign in to comment.