Skip to content

Commit

Permalink
Fix boolean literal TRUE in docs (#54)
Browse files Browse the repository at this point in the history
* Fix boolean literal TRUE in docs

Signed-off-by: pine3ree <[email protected]>
  • Loading branch information
pine3ree authored Nov 6, 2023
1 parent 2499a08 commit 755b30a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
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

0 comments on commit 755b30a

Please sign in to comment.