Skip to content
Snippets Groups Projects

feat: remove compilation command

Closed Bartek Jaskulski requested to merge v0.10 into main
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
+ 2
2
@@ -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 );
}
}
Loading