create-guten-block icon indicating copy to clipboard operation
create-guten-block copied to clipboard

blockNamePHPLower causes issue when its running as a function n ame

Open blachawk opened this issue 2 years ago • 0 comments

Can a developer on this project please explain what is going on here with this function name format on your init.php file, which throws an error in VSCode....

Line 30:

 function <% blockNamePHPLower %>_cgb_block_assets() { // phpcs:ignore
	// Register block styles for both frontend + backend.
	.....
}

why is the function name setup that way in this php file?????? its a problem. how do we fix that? function <% blockNamePHPLower %>

why would anyone write a function name that way in a php file?????

what would be an alternative way to bring blockNamePHPLower into this area, without the invalid naming convention used above?

blachawk avatar Feb 25 '22 16:02 blachawk