diff --git a/composer.json b/composer.json index 5036a25..12b0f24 100644 --- a/composer.json +++ b/composer.json @@ -12,7 +12,7 @@ }, "require-dev": { "maglnet/composer-require-checker": "^4.7", - "php-forge/support": "^0.1", + "php-forge/support": "^0.3", "phpunit/phpunit": "^10.5", "roave/infection-static-analysis-plugin": "^1.34", "symplify/easy-coding-standard": "^12.1", diff --git a/src/Factory/SimpleFactory.php b/src/Factory/SimpleFactory.php index fbb2f23..2de7478 100644 --- a/src/Factory/SimpleFactory.php +++ b/src/Factory/SimpleFactory.php @@ -79,7 +79,7 @@ public static function create(string $class, array $args): Widget * * @psalm-param array $definitions */ - public static function configure(object $widget, array $definitions): widget + public static function configure(object $widget, array $definitions): Widget { if (!$widget instanceof Widget) { throw new InvalidArgumentException(