Skip to content
Snippets Groups Projects
Verified Commit fa2039f5 authored by Bartek Jaskulski's avatar Bartek Jaskulski
Browse files

fix: remove PHP 8 typing

parent 9356bc0f
No related branches found
No related tags found
2 merge requests!5feat: remove compilation command,!4feat: remove compilation command
This commit is part of merge request !4. Comments created here will be created in the context of that merge request.
......@@ -59,7 +59,7 @@ if ( ! function_exists( 'WPDesk\Init\DI\factory' ) ) {
* @param callable|array|string $factory The factory is a callable that takes the container as parameter
* and returns the value to register in the container.
*/
function factory( callable|array|string $factory ): FactoryDefinitionHelper {
function factory( $factory ): FactoryDefinitionHelper {
return new FactoryDefinitionHelper( $factory );
}
}
......@@ -77,7 +77,7 @@ if ( ! function_exists( 'WPDesk\Init\DI\decorate' ) ) {
* @param callable $callable The callable takes the decorated object as first parameter and
* the container as second.
*/
function decorate( callable|array|string $callable ): FactoryDefinitionHelper {
function decorate( $callable ): FactoryDefinitionHelper {
return new FactoryDefinitionHelper( $callable, true );
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment