Type hinting module class. Using getName method over magic method

parent b24672e1
<?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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment