Skip to content

Commit

Permalink
Fix stub, ModuleCore can't return Module instance
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreRambaud committed May 12, 2021
1 parent 1570fd4 commit 5c9095e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions phpstan/stubs/Module.stub
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

namespace PrestaShop\PrestaShop\Core\Module {

interface ModuleInterface
{
}
Expand All @@ -12,14 +12,14 @@ namespace {
class Module extends ModuleCore
{
}

use PrestaShop\PrestaShop\Core\Module\ModuleInterface;

/**
* Missing properties:
* @property string $module_key
* @property bool $bootstrap
* @property string $confirmUninstall
* @property string $module_key
* @property bool $bootstrap
* @property string $confirmUninstall
*/
abstract class ModuleCore implements ModuleInterface
{
Expand All @@ -32,7 +32,7 @@ namespace {
*
* @param string $module_name Module name
*
* @return Module|false
* @return self|false
*/
public static function getInstanceByName($module_name) {}
}
Expand Down

0 comments on commit 5c9095e

Please sign in to comment.