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

Make phpdoc type case-sensitive #8470

Closed
kkmuffme opened this issue Sep 8, 2022 · 2 comments
Closed

Make phpdoc type case-sensitive #8470

kkmuffme opened this issue Sep 8, 2022 · 2 comments

Comments

@kkmuffme
Copy link
Contributor

kkmuffme commented Sep 8, 2022

https://psalm.dev/r/84fbd22c02

Related #8089
Inspired by #8465 (comment)

@psalm-github-bot
Copy link

I found these snippets:

https://psalm.dev/r/84fbd22c02
<?php

use dateTime;

/**
 * @param dAteTime $arg
 * @return void
 */
function a( $arg ) {
	/** @var daTeTime $arg */
    echo $arg->format('Y-m-d H:i:s');
}
Psalm output (using commit afe85fa):

ERROR: UnnecessaryVarAnnotation - 10:11 - The @var dateTime annotation for $arg is unnecessary

@orklah
Copy link
Collaborator

orklah commented Dec 28, 2022

fixed :)

@orklah orklah closed this as completed Dec 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants