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

Fix boolean literal TRUE in docs #54

Merged
merged 2 commits into from
Nov 6, 2023
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/book/adapter/dbtable/callback-check.md
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ $adapter = new AuthAdapter(

// Now retrieve the Select instance and modify it:
$select = $adapter->getDbSelect();
$select->where('active = "TRUE"');
$select->where('active = TRUE');

// Authenticate; this will include "users.active = TRUE" in the WHERE clause:
$adapter->authenticate();
Expand Down
6 changes: 3 additions & 3 deletions docs/book/adapter/dbtable/credential-treatment.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,13 +234,13 @@ they have followed a verification process.
```php
use Laminas\Authentication\Adapter\DbTable\CredentialTreatmentAdapter as AuthAdapter;

// The active field value of an account is equal to "TRUE"
// The active field value of an account is equal to the sql boolean literal TRUE
$adapter = new AuthAdapter(
$db,
'users',
'username',
'password',
'PASSWORD(?) AND active = "TRUE"'
'PASSWORD(?) AND active = TRUE'
);
```

Expand Down Expand Up @@ -339,7 +339,7 @@ $adapter = new AuthAdapter(

// Now retrieve the Select instance and modify it:
$select = $adapter->getDbSelect();
$select->where('active = "TRUE"');
$select->where('active = TRUE');

// Authenticate; this will include "users.active = TRUE" in the WHERE clause:
$adapter->authenticate();
Expand Down