Skip to content
This repository has been archived by the owner on Oct 10, 2022. It is now read-only.

blockNamePHPLower causes issue when its running as a function n ame #306

Open
blachawk opened this issue Feb 25, 2022 · 0 comments
Open

Comments

@blachawk
Copy link

blachawk commented Feb 25, 2022

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant