Skip to content

Commit

Permalink
Type hint returns fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
JustSteveKing committed Oct 8, 2021
1 parent 4646622 commit edc126c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/HasChildren.php
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ public function getInheritanceColumn(): string
* @param array $attributes
* @return mixed
*/
protected function getChildModel(array $attributes): mixed
protected function getChildModel(array $attributes)
{
$className = $this->classFromAlias(
$attributes[$this->getInheritanceColumn()]
Expand All @@ -229,7 +229,7 @@ protected function getChildModel(array $attributes): mixed
* @param mixed $aliasOrClass
* @return string
*/
public function classFromAlias(mixed $aliasOrClass): string
public function classFromAlias($aliasOrClass): string
{
if (property_exists($this, 'childTypes')) {
if (isset($this->childTypes[$aliasOrClass])) {
Expand Down

0 comments on commit edc126c

Please sign in to comment.