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

Docs: Fix minor php syntax issues in code examples #8601

Merged
merged 1 commit into from Oct 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/running_psalm/issues/FalsableReturnStatement.md
Expand Up @@ -18,7 +18,7 @@ You can add a specific check for false:
<?php

function getCommaPosition(string $a) : int {
$pos = return strpos($a, ',');
$pos = strpos($a, ',');

if ($pos === false) {
return -1;
Expand All @@ -34,7 +34,7 @@ Alternatively you may choose to throw an exception:
<?php

function getCommaPosition(string $a) : int {
$pos = return strpos($a, ',');
$pos = strpos($a, ',');

if ($pos === false) {
throw new Exception('This is unexpected');
Expand Down
2 changes: 1 addition & 1 deletion docs/running_psalm/issues/TaintedLdap.md
Expand Up @@ -16,7 +16,7 @@ If LDAP requests like these are used for login purposes, it could result in an a

$ds = ldap_connect('example.com');
$dn = 'o=Psalm, c=US';
$filter = $_GET['filter']);
$filter = $_GET['filter'];
ldap_search($ds, $dn, $filter, []);
```

Expand Down