Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MISSING_VAR: Variable argumentCollection is not declared with a var statement. #552

Closed
zspitzer opened this issue Mar 29, 2018 · 1 comment

Comments

@zspitzer
Copy link

<cfscript>
private any function _preparePageObject( required string pageFilePath, required string rootDirectory ) {
		var page = "";
		var pageData = new PageReader().readPageFile( arguments.rootDirectory & pageFilePath );
		
			switch( pageData.pageType ?: "" ) {
				case "function":
					pageData.append( _getFunctionSpecification( pageData.slug, arguments.rootDirectory & pageFilePath ), false );
					page = new FunctionPage( argumentCollection**=pageData );
				break;
				case "tag":
					pageData.append( _getTagSpecification( pageData.slug, arguments.rootDirectory & pageFilePath ), false );
					page = new TagPage( argumentCollection=pageData );
				break;
				default:
					page = new Page( argumentCollection=pageData );
            }
  }
</cfscript>

snippet from https://github.com/lucee/lucee-docs/blob/master/api/data/DocTree.cfc#L231

@KamasamaK
Copy link
Collaborator

Duplicate of #517

@KamasamaK KamasamaK marked this as a duplicate of #517 Mar 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants