-
Notifications
You must be signed in to change notification settings - Fork 55
Security-focused PHPstan #916
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
base: main
Are you sure you want to change the base?
Changes from all commits
8a6ee90
c893864
1b0ce8b
76a39d3
a3014a3
4f54371
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -109,12 +109,12 @@ protected function prepareGithubRepository(string $project_name, string $organiz | |
|
|
||
| $this->taskReplaceInFile('.bootstrap/.ddev/config.yaml') | ||
| ->from('8880') | ||
| ->to((string) rand(6000, 8000)) | ||
| ->to((string) random_int(6000, 8000)) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What's the benefit of this?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Here, it would be fine with
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. See Slack devstuff for more context. |
||
| ->run(); | ||
|
|
||
| $this->taskReplaceInFile('.bootstrap/.ddev/config.yaml') | ||
| ->from('4443') | ||
| ->to((string) rand(3000, 5000)) | ||
| ->to((string) random_int(3000, 5000)) | ||
| ->run(); | ||
|
|
||
| $host_user = $this->taskExec("whoami") | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is
2in this context?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ Allowed:
print_r($var, true)- returns output as string (for logging)❌ Disallowed:
print_r($var)orprint_r($var, false)- outputs directly to screen