phpcs-import-detection icon indicating copy to clipboard operation
phpcs-import-detection copied to clipboard

False positive for `dbDelta` when using "ignoreWordPressSymbols"

Open thomas-price opened this issue 1 year ago • 0 comments

With configuration:

	<rule ref="ImportDetection"/>
	<rule ref="ImportDetection.Imports.RequireImports">
		<properties>
			<property name="ignoreWordPressSymbols" value="true"/>
		</properties>
	</rule>

A false positive is occurring: "Found unimported symbol 'dbDelta'." I can see dbdelta (lowercase) is included in WordPressSymbols.php. Question: Should the symbol list be case insensitive, if not, should dbDelta also be included?

thank you

thomas-price avatar Jan 27 '24 08:01 thomas-price