diff --git a/platforms/php/build.php b/platforms/php/build.php index d1b82b2..3126cc9 100644 --- a/platforms/php/build.php +++ b/platforms/php/build.php @@ -59,6 +59,10 @@ class Component_Builder { private string $dist_path = ''; function __construct( $args = [] ) { + if ( empty( $args['backPath'] ) || empty( $args['projectPath'] ) || empty( $args['blockName'] ) || empty( $args['platform'] ) ) { + die( 'Error: Missing arguments. Make sure all parameter passed.' ); + } + $this->module_path = $args['backPath']; $this->project_path = $args['projectPath']; $this->component_name = $args['blockName'];