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

$expr->name is not prefixed with $ #4554

Merged
merged 1 commit into from Nov 16, 2020
Merged

$expr->name is not prefixed with $ #4554

merged 1 commit into from Nov 16, 2020

Conversation

LukasReschke
Copy link
Contributor

The example as-is would currently not flag the following code:

	public function foo() {
		$foo = $bad_data;
		\shell_exec($foo);
        } 

Switching it to bad_data made it work.

The example as-is would currently not flag the following code:

```
	public function foo() {
		$foo = $bad_data;
		\shell_exec($foo);
        } 
```

Switching it to `bad_data` made it work.
@muglug muglug merged commit fd06167 into vimeo:master Nov 16, 2020
@muglug
Copy link
Collaborator

muglug commented Nov 16, 2020

Thanks!

@LukasReschke LukasReschke deleted the patch-1 branch November 16, 2020 09:42
danog pushed a commit to danog/psalm that referenced this pull request Jan 29, 2021
The example as-is would currently not flag the following code:

```
	public function foo() {
		$foo = $bad_data;
		\shell_exec($foo);
        } 
```

Switching it to `bad_data` made it work.
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

Successfully merging this pull request may close these issues.

None yet

2 participants