Skip to content

Commit

Permalink
Type hinting module class. Using getName method over magic method
Browse files Browse the repository at this point in the history
  • Loading branch information
nWidart committed Sep 14, 2017
1 parent b24672e commit fa617af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Modules/Workshop/helpers.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

if (! function_exists('module_version')) {
function module_version($module)
function module_version(\Nwidart\Modules\Laravel\Module $module)
{
if (is_core_module($module->name) === true) {
if (is_core_module($module->getName()) === true) {
return \Modules\Core\Foundation\AsgardCms::VERSION;
}

Expand Down

0 comments on commit fa617af

Please sign in to comment.