Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
Sairahcaz authored and github-actions[bot] committed Apr 2, 2023
1 parent 14505e2 commit a690e65
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/DynamicModelException.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ final class DynamicModelException extends InvalidArgumentException
{
public static function tableDoesNotExist(string $tableName): static
{
return new static("The table '$tableName' you provided to the dynamic model does not exists! Please create it first!");
return new self("The table '$tableName' you provided to the dynamic model does not exists! Please create it first!");
}

public static function primaryKeyDoesNotExist(): static
Expand Down
1 change: 0 additions & 1 deletion src/DynamicModelFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ public function create(string $concreteClassName, string $tableName, string $dbC

// tell the IDE which type $dynamicModel should be...
/** @var $dynamicModel Model&DynamicModelInterface */

if (! method_exists($dynamicModel, 'bindDynamically')) {
throw DynamicModelException::bindFuncDoesNotExist($concreteClassName);
}
Expand Down

0 comments on commit a690e65

Please sign in to comment.